generated from operate-first/probot-template
-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (41 loc) · 1.09 KB
/
push.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
41
42
43
44
45
46
47
48
name: Push
on:
push:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Test
uses: ./.github/actions/test
build:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: ./.github/actions/build
with:
tags: ${{ github.sha }} latest
image: robozome
- name: Push To Quay
uses: redhat-actions/push-to-registry@v2
if: ${{ github.repository == 'operate-first/robozome'}}
with:
image: robozome
tags: ${{ github.sha }} latest
registry: quay.io/operate-first
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Set expiration
uses: ./.github/actions/set-expiration
with:
repository: operate-first/robozome
tag: ${{ github.sha }}
expiration: +1 week
token: ${{ secrets.QUAY_OAUTH_TOKEN }}