This commit is contained in:
@@ -14,31 +14,19 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
run: dnf install -y nodejs git podman
|
run: dnf install -y nodejs git
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login to Registry
|
- name: Login to Registry
|
||||||
uses: redhat-actions/podman-login@v1
|
run: buildah login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_PASSWORD }} git.kocoder.xyz
|
||||||
with:
|
|
||||||
registry: git.kocoder.xyz
|
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Buildah Build
|
- name: Buildah Build
|
||||||
id: build-image
|
run: |
|
||||||
uses: redhat-actions/buildah-build@v2
|
buildah build -t ${{ github.ref_name }} .
|
||||||
with:
|
buildah tag ${{ github.ref_name }} latest
|
||||||
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.
|
|
||||||
|
|
||||||
- name: Push Docker Images
|
- name: Push Docker Images
|
||||||
uses: redhat-actions/push-to-registry@v2
|
run: |
|
||||||
with:
|
buildah push ${{ github.ref_name }} docker://git.kocoder.xyz/kocoded/vt-be:${{ github.ref_name }}
|
||||||
image: vt-be
|
buildah push latest docker://git.kocoder.xyz/kocoded/vt-be:latest
|
||||||
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