10 Commits
1.0.0 ... 0.0.5

Author SHA1 Message Date
Patryk Koreń
30d0485da3 ci11
Some checks failed
Build and Push Docker Image / docker (push) Has been cancelled
2026-01-07 20:32:10 +01:00
Patryk Koreń
3232abab68 ci10
Some checks failed
Build and Push Docker Image / docker (push) Failing after 39s
2026-01-07 20:29:21 +01:00
Patryk Koreń
6add9f7cad ci9
Some checks failed
Build and Push Docker Image / docker (push) Failing after 57s
2026-01-07 20:25:20 +01:00
Patryk Koreń
e8ca15df06 ci8
Some checks failed
Build and Push Docker Image / docker (push) Failing after 51s
2026-01-07 20:20:55 +01:00
Patryk Koreń
1061864cae ci7
Some checks failed
Build and Push Docker Image / docker (push) Failing after 41s
2026-01-07 20:15:47 +01:00
Patryk Koreń
26449dd5c9 ci6
Some checks failed
Build and Push Docker Image / docker (push) Failing after 37s
2026-01-07 20:14:04 +01:00
Patryk Koreń
72e822950b ci5
Some checks failed
Build and Push Docker Image / docker (push) Failing after 40s
2026-01-07 20:12:32 +01:00
Patryk Koreń
d3396a4c9b ci4
Some checks failed
Build and Push Docker Image / docker (push) Failing after 38s
2026-01-07 20:05:36 +01:00
Patryk Koreń
1269b35dbd ci3
Some checks failed
Build and Push Docker Image / docker (push) Failing after 41s
2026-01-07 20:04:05 +01:00
Patryk Koreń
0163625507 ci2 2026-01-07 20:03:12 +01:00

View File

@@ -3,7 +3,7 @@ name: Build and Push Docker Image
on: on:
push: push:
tags: tags:
- '*' # Trigger on any Git tag - '*' # Trigger on any git tag
jobs: jobs:
docker: docker:
@@ -13,21 +13,34 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Docker Buildx - name: Set up Podman
uses: docker/setup-buildx-action@v3 run: |
export XDG_RUNTIME_DIR=/tmp/run-user
export HOME=/tmp/home
mkdir -p $XDG_RUNTIME_DIR $HOME
# Ensure Podman is installed
if ! command -v podman &> /dev/null; then
echo "Podman not found, installing..."
sudo apt-get update && sudo apt-get install -y podman
fi
podman info || true # info will fail if storage driver is overlay, ignore
- name: Log in to Docker registry - name: Log in to Docker registry
uses: docker/login-action@v2 run: |
with: echo "${REGISTRY_PASSWORD}" | podman login ${GITEA_REGISTRY} \
registry: ${{ env.GITEA_REGISTRY }} --username ${REGISTRY_USERNAME} --password-stdin
username: ${{ secrets.GITEA_REGISTRY_USERNAME }} env:
password: ${{ secrets.GITEA_REGISTRY_PASSWORD }} REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 run: |
with: IMAGE_TAG="Papryk/dj-spangebob:${{ gitea.ref_name }}"
context: . echo "Building image $IMAGE_TAG"
push: true podman build -t "$IMAGE_TAG" .
tags: | echo "Pushing image $IMAGE_TAG"
${{ env.GITEA_REGISTRY }}/${{ github.repository_owner }}/${{ github.repo }}:${{ github.ref_name }} podman push "$IMAGE_TAG"
env:
TAG: ${{ gitea.ref_name }}