Merge pull request #38 from Ferlab-Ste-Justine/fix/cqdg-793_cavatica_… #27
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 Sha and Timestamp | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
push: | |
name: Publish Image using commit sha and timestamp | |
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: "{sha}-{timestamp}" |