Skip to content

Bump actions/download-artifact from 4 to 5 in the github-actions group #186

Bump actions/download-artifact from 4 to 5 in the github-actions group

Bump actions/download-artifact from 4 to 5 in the github-actions group #186

Workflow file for this run

name: Docker
on:
release:
types: [ published ]
push:
branches:
- master
- release/*
- main
pull_request:
branches:
- master
- release/*
- main
permissions:
packages: write
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: info
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
${{ github.sha }}
${{ github.event_name == 'release' && github.ref_name || '' }}
${{ github.event_name == 'release' && 'latest' || 'dev' }}
${{ github.event_name == 'pull_request' && format('{0}{1}', 'pr_', github.event.number ) || '' }}
- uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: true
tags: ${{ steps.info.outputs.tags }}
labels: ${{ steps.info.outputs.labels }}