Skip to content

Bump docker/login-action from 3.2.0 to 3.3.0 #33

Bump docker/login-action from 3.2.0 to 3.3.0

Bump docker/login-action from 3.2.0 to 3.3.0 #33

Workflow file for this run

name: Build Docker images
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [1.23]
distro: [alpine]
env:
repo: "govpf/nginx"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Compute tags
env:
repo: ${{ env.repo }}
version: ${{ matrix.version }}
distro: ${{ matrix.distro }}
run: |
TAGS="${repo}:${version}-${distro}"
if [[ $distro == 'buster' ]]; then
TAGS+=",${repo}:${version}"
fi
echo 'docker_tags<<EOF' >> $GITHUB_ENV
echo "$TAGS" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Build
uses: docker/build-push-action@v6.1.0
with:
context: ./${{ matrix.version }}
file: ./${{ matrix.version }}/${{ matrix.distro }}/Dockerfile
platforms: linux/amd64
pull: true
push: false
tags: ${{ env.docker_tags }}