This commit is contained in:
Tom Moor committed 2025-04-09 22:09:21 -04:00
1 parent 78a8d19ca0
commit 3c8a086732
1 file changed
+4 -9
+4 -9
View File
@@ -15,11 +15,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential g++
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
@@ -34,23 +29,23 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push base image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.base
push: true
tags: ${{ env.BASE_IMAGE_NAME }}:latest
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
- name: Extract tag version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Build and push main image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
tags: |
${{ contains(steps.get_version.outputs.VERSION, '-') && format('{0}:{1}', env.IMAGE_NAME, steps.get_version.outputs.VERSION) || format('{0}:{1},{0}:latest', env.IMAGE_NAME, steps.get_version.outputs.VERSION) }}