Files
TGSS/.github/workflows/docker-publish.yml
T

23 lines
540 B
YAML

name: Build and publish a Docker image to ghcr.io
on:
push:
branches:
- main
jobs:
docker_publish:
runs-on: "ubuntu-latest"
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
# https://github.com/marketplace/actions/push-to-ghcr
- name: Build and publish a Docker image for ${{ github.repository }}
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}