Skip to content

Update version

Update version #9

Workflow file for this run

name: build-docker
on:
push:
tags:
- 'v*'
env:
REGISTRY_IMAGE: zuplu/postfix-tlspol
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # pin@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # pin@v3
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pin@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Determine tags
id: tags
run: |
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
VERSION_TAG="${{ env.REGISTRY_IMAGE }}:${GITHUB_REF_NAME}"
echo "VERSION_TAG=$VERSION_TAG" >> $GITHUB_ENV
fi
- name: Build and push
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # pin@v6
with:
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/riscv64,linux/s390x
context: .
file: utils/Dockerfile
push: true
tags: |
${{ env.REGISTRY_IMAGE }}:latest
${{ env.VERSION_TAG || '' }}