forked from janus-idp/backstage-showcase
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 903 Bytes
/
nightly.yaml
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
name: Nightly
on:
schedule:
- cron: '0 19 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
env:
REGISTRY: quay.io
PASSWORD_KEY: QUAY_TOKEN
USERNAME: ${{ vars.QUAY_USERNAME }}
IMAGE_NAME: ${{ github.repository }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Publish
uses: ./.github/actions/docker-build
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.USERNAME }}
password: ${{ secrets[env.PASSWORD_KEY] }}
imageName: ${{ env.IMAGE_NAME }}
imageTags: |
type=schedule,pattern={{date 'YYYYMMDD'}},prefix=nightly-
push: true