Skip to content

Workflow file for this run

name: Build and deploy Docker image
on:
push:
release:
types:
- published
jobs:
build-deploy-docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout tree
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ github.sha }},${{ github.head_ref || github.ref_name }}