From 8aa671e46eb42452565b5bd9e6793fc30ec39339 Mon Sep 17 00:00:00 2001 From: Clemens Zagler Date: Wed, 25 Oct 2023 15:54:11 +0200 Subject: [PATCH] ci/cd: add a build for spring-6 branch, so that we have up to date images --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dd0390c8..8d6d85b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -179,3 +179,35 @@ jobs: docker-username: 'noi-techpark-bot' docker-password: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} project-name: ${{ env.PROJECT_NAME }} + + # Deploy Test + deploy-spring-6: + runs-on: ubuntu-22.04 + if: github.ref == 'refs/heads/spring-6' + needs: test + concurrency: deploy-spring-6 + steps: + - name: Checkout source code + uses: actions/checkout@v2 + + - name: Build project + uses: noi-techpark/github-actions/maven-build@v2 + with: + java-version: ${{ env.JAVA_VERSION }} + build-command: 'mvn -B -DskipTests -DfinalName=bdp --projects writer --also-make clean package' + + - name: Build and push images + uses: noi-techpark/github-actions/docker-build-and-push@v2 + with: + docker-username: ${{ github.actor }} + docker-password: ${{ secrets.GITHUB_TOKEN }} + + # https://github.com/shrink/actions-docker-registry-tag + - name: Add a "unstable" docker tag + uses: shrink/actions-docker-registry-tag@v2 + with: + registry: ghcr.io + repository: ${{ github.repository }}/${{ github.event.repository.name }}-app + target: ${{ env.DOCKER_TAG }} + tags: | + spring-6 \ No newline at end of file