update to v0.14.6 #68
Workflow file for this run
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: image | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-image: | |
runs-on: ubuntu-latest | |
env: | |
EXTRA_TAGS: latest canary | |
steps: | |
- name: Configure envvars | |
run: | | |
GIT_TAG="${GITHUB_REF#refs/tags/}" | |
TAGS=$( | |
for repository in quay.io/jcmoraisjr jcmoraisjr; do | |
for project in haproxy-ingress; do | |
for tag in "$GIT_TAG" ${{ env.EXTRA_TAGS }}; do | |
echo -n "${repository}/${project}:${tag}," | |
done | |
done | |
done | |
) | |
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV | |
echo "TAGS=$TAGS" >> $GITHUB_ENV | |
- uses: actions/checkout@v3 | |
- uses: docker/login-action@v2 | |
with: | |
username: jcmoraisjr | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- uses: docker/login-action@v2 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_TOKEN }} | |
- uses: docker/setup-qemu-action@v2 | |
- uses: docker/setup-buildx-action@v2 | |
- uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: builder/Dockerfile | |
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6,linux/s390x | |
push: true | |
build-args: | | |
GIT_TAG=${{ env.GIT_TAG }} | |
tags: ${{ env.TAGS }} |