Skip to content

Commit

Permalink
Try to make docker builds use cache but not overwrite dlite:latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Rønningen committed Apr 20, 2020
1 parent 1662ca5 commit 8057597
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,20 @@ jobs:
echo $(sed -n 's/^ *VERSION *\([0-9a-zA-Z.-]*\) *$/\1/p' <CMakeLists.txt) >VERSION
- name: Create github docker package
uses: whoan/docker-build-with-cache-action@v4
uses: whoan/docker-build-with-cache-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # token provided by actions
with:
push_image_and_stages: true
push_git_tag: false
username: jesper-friis
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
image_name: sintef/dlite/dlite
image_tag: ci-cache
image_name: sintef/dlite/dlite-ci
image_tag: cache
context: .
dockerfile: Dockerfile
build_extra_args: "--compress=true"

# - name: Push docker image for version tagged commits
# if: startsWith(${{ github.ref }}, 'v')
Expand Down

0 comments on commit 8057597

Please sign in to comment.