-
-
Notifications
You must be signed in to change notification settings - Fork 137
26 lines (21 loc) · 678 Bytes
/
push-to-ghcr.yml
File metadata and controls
26 lines (21 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Build and publish a Docker image to ghcr.io
on:
# publish on releases (tagged as "x.y.z" - "v" prefix is removed)
release:
types: [ published ]
# publish on pushes to the main branch (tagged as "latest")
push:
branches:
- devel
# pull_request: # debug
jobs:
docker_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- 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 }}
docker_io_token: ${{ secrets.DOCKER_IO_ACCESS_TOKEN }}