Expose thresholds config options (#574) #15
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 | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Build the Docker images | |
run: | | |
docker build --no-cache -t quay.io/krkn-chaos/krkn containers/ | |
docker tag quay.io/krkn-chaos/krkn quay.io/redhat-chaos/krkn | |
- name: Login in quay | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
run: docker login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN} | |
env: | |
QUAY_USER: ${{ secrets.QUAY_USERNAME }} | |
QUAY_TOKEN: ${{ secrets.QUAY_PASSWORD }} | |
- name: Push the KrknChaos Docker images | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
run: docker push quay.io/krkn-chaos/krkn | |
- name: Login in to redhat-chaos quay | |
if: github.ref == 'refs/heads/main' && 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: Push the RedHat Chaos Docker images | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
run: docker push quay.io/redhat-chaos/krkn | |
- name: Rebuild krkn-hub | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
uses: redhat-chaos/actions/krkn-hub@main | |
with: | |
QUAY_USER: ${{ secrets.QUAY_USERNAME }} | |
QUAY_TOKEN: ${{ secrets.QUAY_PASSWORD }} |