mirror of
https://github.com/mmahdium/TGSS.git
synced 2026-08-12 08:32:48 +03:30
23 lines
540 B
YAML
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 }}
|