Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix build #43

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
34 changes: 13 additions & 21 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
TRAINING_HUGO_ENV: [acend, baloise, puzzle]
steps:
-
name: Checkout
Expand Down Expand Up @@ -34,36 +37,25 @@ jobs:
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_TOKEN }}
-
name: Build Latest Version
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
quay.io/acend/prometheus-basics-training:pr-${{ github.event.pull_request.number }}
-
name: Build Acend Version
name: Build ${{matrix.TRAINING_HUGO_ENV}} Version
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
TRAINING_HUGO_ENV=acend
TRAINING_HUGO_ENV=${{matrix.TRAINING_HUGO_ENV}}
push: true
tags: |
quay.io/acend/prometheus-basics-training:pr-${{ github.event.pull_request.number }}-acend
quay.io/acend/prometheus-basics-training:pr-${{ github.event.pull_request.number }}-${{matrix.TRAINING_HUGO_ENV}}
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
-
name: Build Baloise Version
uses: docker/build-push-action@v5
name: Checkout
uses: actions/checkout@v3
with:
context: .
file: ./Dockerfile
build-args: |
TRAINING_HUGO_ENV=baloise
push: true
tags: |
quay.io/acend/prometheus-basics-training:pr-${{ github.event.pull_request.number }}-baloise
submodules: recursive
-
name: 'Install Helm'
uses: azure/setup-helm@v3
Expand Down
34 changes: 13 additions & 21 deletions .github/workflows/push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
TRAINING_HUGO_ENV: [acend, baloise, puzzle]
steps:
-
name: Checkout
Expand Down Expand Up @@ -37,36 +40,25 @@ jobs:
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_TOKEN }}
-
name: Build Latest Version
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
quay.io/acend/prometheus-basics-training:latest
-
name: Build Acend Version
name: Build ${{matrix.TRAINING_HUGO_ENV}} Version
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
TRAINING_HUGO_ENV=acend
TRAINING_HUGO_ENV=${{matrix.TRAINING_HUGO_ENV}}
push: true
tags: |
quay.io/acend/prometheus-basics-training:latest-acend
quay.io/acend/prometheus-basics-training:latest-${{matrix.TRAINING_HUGO_ENV}}
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
-
name: Build Baloise Version
uses: docker/build-push-action@v5
name: Checkout
uses: actions/checkout@v3
with:
context: .
file: ./Dockerfile
build-args: |
TRAINING_HUGO_ENV=baloise
push: true
tags: |
quay.io/acend/prometheus-basics-training:latest-baloise
submodules: recursive
-
name: 'Install Helm'
uses: azure/setup-helm@v3
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ acendTraining:
repository: quay.io/acend/prometheus-basics-training
pullPolicy: Always
tag: ""
tagsuffix: ""
tagsuffix: "-puzzle"
ingress:
annotations:
kubernetes.io/tls-acme: "true"
Expand Down