Skip to content

Bump docker/build-push-action from 6.6.1 to 6.7.0 (#379) #66

Bump docker/build-push-action from 6.6.1 to 6.7.0 (#379)

Bump docker/build-push-action from 6.6.1 to 6.7.0 (#379) #66

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Docker images
# N.B. This name is used by maven_crosstest.yml
on:
# allow direct trigger
workflow_dispatch:
# only rarely needs to run
push:
paths:
- '**/docker_images.yml'
- 'src/docker/Dockerfile*'
env:
REGISTRY: ghcr.io
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Image prefix (lower case)
run: |
echo "IMAGE_PREFIX=$(echo ${{ env.REGISTRY }}/${{ github.repository }} | tr '[A-Z]' '[a-z]')" >>$GITHUB_ENV
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # 3.3.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push main image
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: src/docker
file: src/docker/Dockerfile
push: true
tags: ${{ env.IMAGE_PREFIX }}:latest
- name: Build and push aarch64
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: src/docker
file: src/docker/Dockerfile.aarch64
platforms: linux/aarch64
push: true
tags: ${{ env.IMAGE_PREFIX }}-aarch64:latest
- name: Build and push riscv64
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: src/docker
file: src/docker/Dockerfile.riscv64
platforms: linux/riscv64
push: true
tags: ${{ env.IMAGE_PREFIX }}-riscv64:latest