-
Notifications
You must be signed in to change notification settings - Fork 72
38 lines (31 loc) · 1.05 KB
/
build-image.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
# Build the Deployer image
name: build-deployer-image
# Trigger the workflow on push or pull request events but only for the main branch
on:
push:
branches:
- main
- itz-df
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Sequence of tasks that will be executed as part of the job
steps:
- name: Check-out repository
uses: actions/checkout@v3
- name: Build the image
run: |
./cp-deploy.sh build
- name: Push to quay.io
env:
QUAY_IO_USER: ${{ secrets.QUAY_IO_USER }}
QUAY_IO_PASSWORD: ${{ secrets.QUAY_IO_PASSWORD }}
run: |
podman login quay.io -u "${QUAY_IO_USER}" -p "${QUAY_IO_PASSWORD}"
podman tag cloud-pak-deployer:latest quay.io/cloud-pak-deployer/cloud-pak-deployer:latest
podman push quay.io/cloud-pak-deployer/cloud-pak-deployer:latest