Skip to content

Update docker/login-action digest to 7ca3450 #336

Update docker/login-action digest to 7ca3450

Update docker/login-action digest to 7ca3450 #336

Workflow file for this run

name: CI
on:
- push
- pull_request
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
if: (github.ref == 'refs/heads/main' && github.event_name == 'push') || github.event_name == 'pull_request'
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Docker setup - QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Docker setup - Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Log in to the Container registry
uses: docker/login-action@06895751d15a223ec091bea144ad5c7f50d228d0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max