Skip to content

Commit

Permalink
ci/cd: add a build for spring-6 branch, so that we have up to date im…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
clezag committed Oct 25, 2023
1 parent 23a650a commit 8aa671e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8aa671e

Please sign in to comment.