use buildah login
Some checks failed
Build and Push Docker Image / build (push) Failing after 20s

This commit is contained in:
2026-02-18 21:04:57 +01:00
parent 0835a01523
commit 98da331c0b

View File

@@ -14,31 +14,19 @@ jobs:
steps:
- name: Install Node.js
run: dnf install -y nodejs git podman
run: dnf install -y nodejs git
- uses: actions/checkout@v4
- name: Login to Registry
uses: redhat-actions/podman-login@v1
with:
registry: git.kocoder.xyz
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
run: buildah login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_PASSWORD }} git.kocoder.xyz
- name: Buildah Build
id: build-image
uses: redhat-actions/buildah-build@v2
with:
containerfiles: "Dockerfile"
image: vt-be
tags: "${{ github.ref_name }} latest"
# No extra args needed with privileged mode usually, but isolation=chroot is fine if preferred.
run: |
buildah build -t ${{ github.ref_name }} .
buildah tag ${{ github.ref_name }} latest
- name: Push Docker Images
uses: redhat-actions/push-to-registry@v2
with:
image: vt-be
tags: ${{ steps.build-image.outputs.tags }}
registry: git.kocoder.xyz/kocoded
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
run: |
buildah push ${{ github.ref_name }} docker://git.kocoder.xyz/kocoded/vt-be:${{ github.ref_name }}
buildah push latest docker://git.kocoder.xyz/kocoded/vt-be:latest