Update dynamodb, s3 to 2.20.135 #2034
Workflow file for this run
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: Scala CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
cache: 'sbt' | |
- name: Run tests | |
run: sbt test | |
- name: Package artifact | |
run: sbt universal:packageBin | |
- name: Upload importer artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bus-stops-importer.zip | |
path: modules/importer/target/universal/importer-*.zip | |
if-no-files-found: error | |
Build-and-Push-Docker-Image: | |
runs-on: ubuntu-latest | |
needs: build-and-test | |
name: Docker Build, Tag, Push | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Tag | |
id: docker_meta | |
uses: crazy-max/[email protected] | |
with: | |
images: ghcr.io/faustin0/bus-info/app # base name for tag | |
tags: | | |
type=ref,event=tag | |
type=sha | |
- name: Build container image | |
uses: docker/build-push-action@v4 | |
with: | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
labels: ${{ steps.docker_meta.outputs.labels }} |