Add build container step to PRs, fix typos (#226)

This commit is contained in:
Sanja Bonic
2022-04-12 18:46:26 +02:00
committed by GitHub
parent 0b596cdfb0
commit 0bd543a339
2 changed files with 12 additions and 8 deletions
+7 -2
View File
@@ -1,26 +1,31 @@
name: Docker Image CI
on:
push:
branches: ['master']
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login in quay
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
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
uses: actions/checkout@v3
- name: Build the Docker images
run: docker build --no-cache -t quay.io/openshift-scale/kraken containers/
- name: Push the Docker images
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
run: docker push quay.io/openshift-scale/kraken
- name: Remove Image
run: docker rmi -f quay.io/openshift-scale/kraken | exit 0
- name: Build Kraken-hub Image
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: convictional/trigger-workflow-and-wait@v1.5.0
with:
owner: cloud-bulldozer