Skip to content

Commit

Permalink
new registry job (#26)
Browse files Browse the repository at this point in the history
* new registry job
  • Loading branch information
ramueSVA authored Jul 15, 2024
1 parent c97481e commit 2e708bc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-for-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
continue-on-error: true

docker:
registry:
needs: test_and_scan
if: github.event.pull_request.merged == true

Expand All @@ -78,12 +78,14 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Login to docker hub
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image
run: |
mvn spring-boot:build-image -Dspring-boot.build-image.imageName=numforschungsdatenplattform/num-aql-editor:develop -DskipTests
docker push numforschungsdatenplattform/num-aql-editor:develop
IMAGE_NAME=ghcr.io/num-forschungsdatenplattform/num-aql-editor:develop
mvn spring-boot:build-image -Dspring-boot.build-image.imageName=$IMAGE_NAME -DskipTests
docker push $IMAGE_NAME

0 comments on commit 2e708bc

Please sign in to comment.