Skip to content

Bump docker/build-push-action from 4.1.1 to 4.2.1 #55

Bump docker/build-push-action from 4.1.1 to 4.2.1

Bump docker/build-push-action from 4.1.1 to 4.2.1 #55

Workflow file for this run

name: "build-latest"
on:
push:
branches:
- "main"
- "master"
paths:
- "Dockerfile*"
- ".github/workflows/**"
pull_request:
branches:
- "main"
- "master"
paths:
- "Dockerfile*"
jobs:
docker_buildx_alpine:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository and set up Docker
uses: JonasAlfredsson/[email protected]
with:
should_login: ${{ github.event_name != 'pull_request' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract the Nginx version numbers from the Dockerfile
id: tagger
run: bash .github/version_extractor.sh ./Dockerfile >> $GITHUB_ENV
- name: Build and push latest Alpine image with all tags
uses: docker/[email protected]
with:
context: ./
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: |
axistools/nginx-ldap:alpine
axistools/nginx-ldap:mainline-alpine
axistools/nginx-ldap:${{ env.NGINX_MAJOR }}-alpine
axistools/nginx-ldap:${{ env.NGINX_MAJOR }}.${{ env.NGINX_MINOR }}-alpine
axistools/nginx-ldap:${{ env.NGINX_MAJOR }}.${{ env.NGINX_MINOR }}.${{ env.NGINX_PATCH }}-alpine