Skip to content

0.7.3

0.7.3 #5

Workflow file for this run

name: Publish Docker image
on:
release:
types: [created, prereleased]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Log in to GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
file: ./Dockerfile
push: true
tags: |
ghcr.io/apdevteam/modmail:${{ github.event.release.tag_name }}
ghcr.io/apdevteam/modmail:latest