Update to 24.04 (Noble Numbat) #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image | |
on: | |
push: {} | |
workflow_dispatch: {} | |
concurrency: docker | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ github.token }} | |
- name: Compute Docker metadata | |
id: metadata | |
uses: docker/metadata-action@v4 | |
with: | |
images: ghcr.io/${{ github.repository }} | |
tags: | | |
type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch }} | |
type=ref,event=branch,enable=${{ github.ref_name != github.event.repository.default_branch }} | |
- name: Build and push Docker images | |
uses: docker/build-push-action@v4 | |
with: | |
file: Dockerfile | |
push: true | |
build-args: COMMIT=${{ github.sha }} | |
tags: ${{ steps.metadata.outputs.tags }} | |
labels: ${{ steps.metadata.outputs.labels }} |