Merge pull request #36 from Ferlab-Ste-Justine/fix/CQDG-752_unauthori… #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Image Using latest | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
push: | |
name: Publish Image using latest tag | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
cache: 'sbt' | |
- name: Run tests | |
run: sbt test | |
- name: Assembly | |
run: sbt assembly | |
- name: Push the image on the registry | |
uses: Ferlab-Ste-Justine/action-push-image@v2 | |
with: | |
username: ${{ secrets.FERLAB_DOCKER_HUB_USER }} | |
password: ${{ secrets.FERLAB_DOCKER_HUB_TOKEN }} | |
image: ferlabcrsj/ferload | |
tag_format: "latest" |