6 Commits

Author SHA1 Message Date
Patryk Koreń
79841b30c9 ci11
Some checks failed
Build and Push Docker Image / build-image (push) Failing after 32s
2026-01-07 21:50:19 +01:00
Patryk Koreń
3d7f6eeddf ci11
Some checks failed
Build and Push Docker Image / build-image (push) Has been cancelled
2026-01-07 21:48:10 +01:00
Patryk Koreń
ff433ebd58 ci11
Some checks failed
Build and Push Docker Image / build-image (push) Has been cancelled
2026-01-07 21:46:48 +01:00
Patryk Koreń
a116302a10 ci11
Some checks failed
Build and Push Docker Image / build-image (push) Has been cancelled
2026-01-07 21:44:40 +01:00
Patryk Koreń
459174e3c3 ci11
Some checks failed
Build and Push Docker Image / build-image (push) Has been cancelled
2026-01-07 21:41:38 +01:00
Patryk Koreń
78421b9a93 ci11
Some checks failed
Build and Push Docker Image / docker (push) Has been cancelled
2026-01-07 21:33:31 +01:00

View File

@@ -6,39 +6,40 @@ on:
- '*' # Trigger on any git tag
jobs:
docker:
runs-on: gitea-runner-1
build-image:
runs-on: ubuntu-latest
container:
image: mgoltzsche/podman:latest
steps:
- name: Install dedps
run: |
apk add --no-cache nodejs npm git
- name: Checkout code
uses: actions/checkout@v3
- name: Install Podman
run: |
apt-get update
apt-get install -y podman fuse-overlayfs slirp4netns
rm -rf /var/lib/apt/lists/*
- name: Verify Podman
run: |
podman --version
podman info
- name: Build container image
env:
REGISTRY: https://gitea.papryk.com
IMAGE_NAME: Papryk/dj-spangebob
TAG: ${{ gitea.ref_name }}
run: |
podman build --storage-driver=vfs -t my-image:latest .
podman build -t "$REGISTRY/$IMAGE_NAME:$TAG" .
- name: Log in to Docker registry
uses: docker/login-action@v2
env:
registry: https://gitea.papryk.com
REGISTRY: https://gitea.papryk.com
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
echo "$REGISTRY_PASSWORD" | podman login "$REGISTRY" -u "$REGISTRY_USERNAME" --password-stdin
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: "https://gitea.papryk.com/Papryk/dj-spangebob:${{ gitea.ref_name }}"
env:
REGISTRY: https://gitea.papryk.com
IMAGE_NAME: Papryk/dj-spangebob
TAG: ${{ gitea.ref_name }}
run: |
podman push "$REGISTRY/$IMAGE_NAME:$TAG"