Update registry.access.redhat.com/ubi8/ubi-minimal Docker tag to v8.9… #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: packer-build-qemu | |
on: | |
push: | |
paths: | |
- '.github/workflows/packer-build-qemu.yml' | |
- 'docker_builds/packer-build-qemu/**' | |
- '!docker_builds/packer-build-qemu/*.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
VERSION: $(cat docker_builds/packer-build-qemu/.version) | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
- | |
name: Set up Docker Buildx | |
uses: crazy-max/ghaction-docker-buildx@v3 | |
with: | |
buildx-version: latest | |
- | |
name: Cache Docker layers | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
- | |
name: Docker Buildx (build) | |
run: | | |
docker buildx build \ | |
--cache-from "type=local,src=/tmp/.buildx-cache" \ | |
--cache-to "type=local,dest=/tmp/.buildx-cache" \ | |
--platform linux/amd64,linux/arm/v7,linux/arm64 \ | |
--output "type=image,push=false" \ | |
--tag enros/packer-build-qemu:latest \ | |
--file ./docker_builds/packer-build-qemu/Dockerfile \ | |
./docker_builds/packer-build-qemu/ | |
- | |
name: Login to GitHub Docker Registry | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: | | |
echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin | |
- | |
name: Docker Buildx (push) | |
run: | | |
docker buildx build \ | |
--cache-from "type=local,src=/tmp/.buildx-cache" \ | |
--platform linux/amd64,linux/arm/v7,linux/arm64 \ | |
--output "type=image,push=true" \ | |
--tag enros/packer-build-qemu:latest \ | |
--file ./docker_builds/packer-build-qemu/Dockerfile \ | |
./docker_builds/packer-build-qemu/ | |
- | |
name: Docker Check Manifest | |
run: | | |
docker run --rm mplatform/mquery enros/packer-build-qemu:latest | |
- | |
name: Clear | |
if: always() | |
run: | | |
rm -f ${HOME}/.docker/config.json |