Skip to content

Commit

Permalink
add caching to workflow, 'edited' release type
Browse files Browse the repository at this point in the history
  • Loading branch information
joemaller authored Apr 17, 2020
1 parent a0cbd07 commit d0c9000
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ master ]
release:
types: [ published ]
types: [ published, edited ]

env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
Expand All @@ -17,6 +17,20 @@ jobs:

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- uses: actions/cache@v1
with:
path: /var/lib/docker
key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }}
restore-keys: |
${{ runner.os }}-docker
- name: Log into Docker Hub
run: docker login --username $DOCKER_USER --password $DOCKER_PASS
Expand Down

0 comments on commit d0c9000

Please sign in to comment.