forked from krkn-chaos/cerberus
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 975 Bytes
/
docker-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
name: Docker Image CI
on:
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login in quay
run: docker login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN}
env:
QUAY_USER: ${{ secrets.QUAY_USER_1 }}
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN_1 }}
- name: Check out code
uses: actions/checkout@master
- name: Build the Docker images
run: docker build --no-cache -t quay.io/redhat-chaos/cerberus containers/
- name: Push the Docker images
run: docker push quay.io/redhat-chaos/cerberus
- name: Remove Image
run: docker rmi -f quay.io/redhat-chaos/cerberus | exit 0
- name: Build Kraken-hub Image
uses: convictional/[email protected]
with:
owner: redhat-chaos
repo: krkn-hub
github_token: ${{ secrets.G_ACCESS_TOKEN }}
workflow_file_name: docker-image.yml
trigger_workflow: true
wait_workflow: true