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