fixes #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |