Skip to content

Bump docker/login-action from 3 to 4 #63

Bump docker/login-action from 3 to 4

Bump docker/login-action from 3 to 4 #63

Workflow file for this run

name: docker-build
on:
pull_request:
push:
branches:
- 'main'
tags: ["**"]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
quay.io/yuvipanda/prometheus-dirsize-exporter
# generate Docker tags based on the following events/attributes
tags: |
type=sha,prefix=,suffix=
type=ref,prefix=,suffix=,event=tag
# Support for ARM builds
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Quay
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v4
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
registry: quay.io
-
name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}