-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.06 KB
/
envsubst.yml
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
33
34
35
36
37
38
39
40
41
name: envsubst
on:
schedule:
- cron: '0 1 * * *'
push:
branches:
- main
paths:
- '.github/workflows/_shared**'
- '.github/workflows/envsubst.yml'
- 'envsubst/**'
pull_request:
paths:
- '.github/workflows/_shared**'
- '.github/workflows/envsubst.yml'
- 'envsubst/**'
workflow_dispatch:
jobs:
build:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/_shared_build.yml
with:
owner: ${{ github.repository_owner }}
image: envsubst
version: pr-${{ github.event.pull_request.head.sha }}
publish:
permissions:
actions: read
contents: read
id-token: write
packages: write
if: github.event_name != 'pull_request'
uses: ./.github/workflows/_shared_publish.yml
with:
owner: ${{ github.repository_owner }}
image: envsubst
version: 1.${{ github.run_number }}.${{ github.run_attempt }}
revision: ${{ github.sha }}
secrets:
dh_token: ${{ secrets.DOCKERHUB_TOKEN }}
gcr_token: ${{ secrets.GITHUB_TOKEN }}