CI: Test Geminis output
Some checks failed
Build and Push Docker Image / build (push) Failing after 8s
Some checks failed
Build and Push Docker Image / build (push) Failing after 8s
This commit is contained in:
@@ -8,39 +8,34 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
image: quay.io/buildah/stable
|
||||
options: --privileged
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v2
|
||||
uses: redhat-actions/podman-login@v1
|
||||
with:
|
||||
registry: git.kocoder.xyz
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: "Install buildah"
|
||||
run: sudo apt-get -y update && sudo apt-get -y install buildah
|
||||
|
||||
- name: Buildah Build
|
||||
env:
|
||||
BRANCH_NAME: ${{ github.ref_name }}
|
||||
SHORT_HASH: ${{ github.sha }}
|
||||
id: build-image
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
with:
|
||||
containerfiles: "Dockerfile"
|
||||
image: git.kocoder.xyz/kocoded/vt-be
|
||||
image: vt-be
|
||||
tags: "${{ github.ref_name }} latest"
|
||||
extra-args: |
|
||||
--isolation=chroot
|
||||
# No extra args needed with privileged mode usually, but isolation=chroot is fine if preferred.
|
||||
|
||||
- name: Push Docker Images
|
||||
env:
|
||||
BRANCH_NAME: ${{ github.ref_name }}
|
||||
SHORT_HASH: ${{ github.sha }}
|
||||
run: |
|
||||
docker push git.kocoder.xyz/kocoded/vt-be:${BRANCH_NAME}
|
||||
docker push git.kocoder.xyz/kocoded/vt-be:latest
|
||||
|
||||
- name: Log out from registry
|
||||
if: always()
|
||||
run: docker logout git.kocoder.xyz
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user