Skip to content

Commit

Permalink
fix tag, remove cache
Browse files Browse the repository at this point in the history
  • Loading branch information
micdes-pagopa committed Sep 8, 2023
1 parent 2bd4ef7 commit 75ae44d
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/ci-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- '!1.0.x'
- '**'
- 'ci-refactor'
# paths: ['src/**']

env:
Expand Down Expand Up @@ -38,18 +38,6 @@ jobs:
distribution: temurin
java-version: 11

- name: Cache sbt
uses: actions/cache@v2
with:
path: |
~/.sbt
~/.ivy2/cache
~/.coursier/cache/v1
~/.cache/coursier/v1
~/AppData/Local/Coursier/Cache/v1
~/Library/Caches/Coursier/v1
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Install node 16
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -91,11 +79,5 @@ jobs:
file: ./target/docker/stage/Dockerfile
push: true
tags: |
${{ steps.login-ecr.outputs.registry }}/${{ env.NORM_REPO }}:${{ github.ref_name }}
${{ steps.login-ecr.outputs.registry }}/${{ env.NORM_REPO }}:${{ github.ref_name }}-latest
${{ steps.login-ecr.outputs.registry }}/${{ env.NORM_REPO }}:commit-${{ github.sha }}
# - name: Build, tag, and push image to Amazon ECR
# env:
# ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
# COMMIT_SHA: ${{ github.sha }}
# run: 'sbt ++${{ matrix.scala }} docker:publish'

0 comments on commit 75ae44d

Please sign in to comment.