Skip to content

Merge pull request #6 from louisroyer-gh-actions/dependabot/github_ac… #31

Merge pull request #6 from louisroyer-gh-actions/dependabot/github_ac…

Merge pull request #6 from louisroyer-gh-actions/dependabot/github_ac… #31

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ secrets.GHRC_OWNER }}/${{ secrets.GHRC_REPO }}
tags: |
type=sha,format=long
flavor: |
latest=true
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHRC_OWNER }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max