change workflow

This commit is contained in:
2025-03-14 21:13:27 -05:00
parent e9e1cabd11
commit 57ea8374a5

View File

@@ -23,34 +23,52 @@ jobs:
type=ref,event=tag type=ref,event=tag
images: ${{ vars.REPOSITORY_HOST }}/${{ gitea.repository }} images: ${{ vars.REPOSITORY_HOST }}/${{ gitea.repository }}
- name: Install Podman - name: Install QEMU
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y podman sudo apt-get install -y qemu-user-static
- name: Set up Docker Context for Buildx
id: buildx-context
run: |
export DOCKER_HOST=tcp://docker:2376/
export DOCKER_TLS_CERTDIR="/certs"
export DOCKER_TLS_VERIFY=0
export DOCKER_CERT_PATH="/certs/client"
docker context create builders
- name: Setup Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
endpoint: builders
env:
DOCKER_HOST: "tcp://docker:2376/"
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 0
DOCKER_CERT_PATH: "/certs/client"
- name: Available Platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to Registry - name: Login to Registry
id: log-in uses: docker/login-action@v3
uses: redhat-actions/podman-login@v1
with: with:
registry: ${{ vars.REPOSITORY_HOST }} registry: ${{ vars.REPOSITORY_HOST }}
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.REPOSITORY_TOKEN }} password: ${{ secrets.REPOSITORY_TOKEN }}
- name: Build Image - name: Build and Push Image
id: build-image uses: docker/build-push-action@v6
uses: redhat-actions/buildah-build@v2
with: with:
oci: true context: .
image: ${{ vars.REPOSITORY_HOST }}/${{ gitea.repository }} push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
containerfiles: | file: ./Dockerfile
./Dockerfile env:
DOCKER_HOST: "tcp://docker:2376/"
- name: Push Image DOCKER_TLS_CERTDIR: "/certs"
id: push-to-gitea DOCKER_TLS_VERIFY: 0
uses: redhat-actions/push-to-registry@v2 DOCKER_CERT_PATH: "/certs/client"
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ vars.REPOSITORY_HOST }}