fix(deps): update kotlin packages to v1.9.0 #336
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: ci | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- uses: gradle/gradle-build-action@v2 | |
- uses: docker/setup-buildx-action@v2 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- run: ./gradlew check | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
if: always() | |
with: | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
- run: ./gradlew shadowJar | |
- run: ./gradlew dockerBuildProperties | |
- run: cat build/build.properties | |
- name: Build container | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
load: true | |
tags: blindern/users-api:latest | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- run: scripts/docker-test-image.sh blindern/users-api:latest | |
- name: Push container | |
if: github.ref == 'refs/heads/master' | |
id: docker_build | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
push: true | |
tags: blindern/users-api:latest | |
- name: Deploy | |
if: github.ref == 'refs/heads/master' | |
run: | | |
curl --fail -L -i -H "authorization: bearer $DEPLOYER_TOKEN" -H "content-type: application/json" -X POST https://deployer.foreningenbs.no/deploy -d ' | |
{ | |
"service": "users-api", | |
"attributes": { | |
"image": "blindern/users-api@${{ steps.docker_build.outputs.digest }}" | |
} | |
}' | |
env: | |
DEPLOYER_TOKEN: ${{ secrets.DEPLOYER_TOKEN }} |