Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

chore(deps): update docker/metadata-action digest to 6d6eaf3 #394

chore(deps): update docker/metadata-action digest to 6d6eaf3

chore(deps): update docker/metadata-action digest to 6d6eaf3 #394

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@6d6eaf34518db036006be0b031c21fd4eb72ef69
with:
images: ghcr.io/elsbrock/guix-base
tags: |
type=ref,event=branch,enable=${{ !endsWith(github.ref, github.event.repository.default_branch) }}
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
flavor: |
latest=false
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Login to the Container registry
uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb
if: ${{ github.event_name != 'pull_request' }}
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Docker image
uses: docker/build-push-action@v5
if: ${{ github.event_name != 'pull_request' }}
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}