-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 854 Bytes
/
Copy pathpublish.yml
File metadata and controls
32 lines (28 loc) · 854 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
27
28
29
30
31
32
---
name: Publish
# yamllint disable-line rule:truthy
on:
push:
branches:
- "master"
- "main"
tags:
- "v*"
workflow_dispatch:
permissions: read-all
jobs:
publish_image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # pin@v3
- name: Build and Publish Image
uses: wesley-dean/publish_container@f9a254ab094618da2c41e7011035b51447cf367c # pin@v1.0.16
with:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_PAT }}
ghcr_token: ${{ secrets.GHCR_PAT }}
ghcr_username: ${{ secrets.GHUB_USERNAME }}
github_ref: ${{ github.ref }}
repository_name: ${{ github.event.repository.name }}
platforms: linux/amd64