Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/push_container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and publish image
on:
release:
types: [published]
workflow_dispatch:
pull_request:

jobs:
push_to_registry:
name: Build and push Docker image to GitHub Container Registry
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v6

- 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: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create tags for publishing image
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/dawn
tags: |
type=ref,event=tag
type=raw,value=latest

- name: Build and push image to GitHub Packages
uses: docker/build-push-action@v6
with:
context: .
file: ./releng/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Loading