Skip to content

Commit

Permalink
Fixes build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fkneier-bikeleasing committed May 22, 2024
1 parent 1ee6744 commit 99a627a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ permissions:
packages: write

env:
IMAGE: "ghcr.io/${{ github.repository }}"

IMAGE: 'ghcr.io/${{ github.repository }}'
jobs:
version:
name: Calculate Version
Expand All @@ -31,7 +30,7 @@ jobs:
fetch-depth: 0
- name: Calculate version
id: version
run: curl -Ls https://solugo.github.io/gitversion/run.sh | GITVERSION=v1.1.0 bash
run: curl -Ls https://solugo.github.io/gitversion/run.sh | GITVERSION=v1.1.1 bash
build:
name: Build
runs-on: ubuntu-latest
Expand All @@ -47,14 +46,16 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build
run: |
./gradlew test jib \
-Pversion=$VERSION \
-Djib.to.image=$IMAGE \
-Djib.to.image=$IMAGE \
-Djib.to.tags=$VERSION \
-Djib.to.auth.username=${{ github.actor }} \
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} \
-Djib.to.auth.username=${{ github.actor }} \
-Djib.to.auth.password=${{ secrets.GITHUB_TOKEN }} \
--console=plain \
--no-daemon \
;
Expand All @@ -67,9 +68,12 @@ jobs:
env:
VERSION: ${{ needs.version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Kubernetes
run: mkdir ~/.kube && echo '${{ secrets.KUBE_CONFIG_TITAN_01 }}' > ~/.kube/config
- name: Deploy to Kubernetes
shell: bash
run: |
helm upgrade -i oauth-mock ./chart \
--set ingress.enabled=true \
Expand Down

0 comments on commit 99a627a

Please sign in to comment.