try docker build
Some checks failed
CI / build-and-test (pull_request) Failing after 2m47s
CI / build-docker-image (pull_request) Successful in 15m55s

This commit is contained in:
Tobias Klemp
2025-12-29 16:45:57 +01:00
parent e6eb9ab5da
commit 3cc5a09f3d
2 changed files with 16 additions and 15 deletions

View File

@@ -41,23 +41,24 @@ jobs:
build-docker-image:
runs-on: ubuntu-latest
steps:
- name: Update package list
run: sudo apt-get update
- name: Setup Podman
run: sudo apt-get -y install podman
- name: verify Podman installation
run: podman -v
- name: Checkout code
uses: actions/checkout@v4
- name: Login to Docker registry
run: podman login --tls-verify=false gitea:3000 --username ${{ github.actor }} --password ${{ secrets.REGISTRY_ACCESS_TOKEN }}
- name: Set up Docker Build
uses: docker/setup-buildx-action@v3
- name: Build image
run: podman build .
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ vars.INSTANCE_URL }}
username: ${{ github.actor }}
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ vars.INSTANCE_URL }}/tech-reborn/phoenix:${{ github.sha }}
# type-check:
# runs-on: ubuntu-latest