mirror of https://github.com/deuill/grawkit.git
Use Podman for container image builds
Grawkit Play Container Build / Container Build (push) Successful in 5m1s
Details
Grawkit Play Container Build / Container Build (push) Successful in 5m1s
Details
This commit is contained in:
parent
041c002322
commit
9607a8c0f9
|
@ -10,21 +10,25 @@ jobs:
|
|||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Docker BuildX
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to container registry
|
||||
uses: docker/login-action@v3
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update -y
|
||||
apt-get install -y podman buildah
|
||||
- name: Build container image
|
||||
id: build-image
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
with:
|
||||
image: ${{ env.CONTAINER_NAME }}
|
||||
tags: ${{ env.CONTAINER_TAG }}
|
||||
containerfiles: play/Containerfile
|
||||
- name: Push to container registry
|
||||
id: push-to-registry
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
with:
|
||||
registry: ${{ vars.CONTAINER_REGISTRY_URL }}
|
||||
image: ${{ steps.build-image.outputs.image }}
|
||||
tags: ${{ steps.build-image.outputs.tags }}
|
||||
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
|
||||
- name: Build and push container
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: play/Containerfile
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
||||
push: true
|
||||
tags: ${{ vars.CONTAINER_REGISTRY_URL }}/${{ env.CONTAINER_NAME }}:${{ env.CONTAINER_TAG }}
|
||||
- name: Print container image URL
|
||||
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
|
||||
|
|
Loading…
Reference in New Issue