-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Pre-pull docker images to optimize caching
Also, switch to pierrezemb/gostatic:latest instead of specific hash due to satackey/action-docker-layer-caching#17
- Loading branch information
1 parent
54cc5e4
commit 7e2df6b
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,16 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: > | ||
echo ::set-env name=K8S_EMUL_IMAGE::kyryloshpytsyaprismai/k8s-emul:sha-${GITHUB_SHA::7} | ||
- name: Pull Docker images | ||
run: > | ||
cd tests && | ||
docker-compose pull | ||
- name: Pull Docker layer cache | ||
uses: satackey/[email protected] | ||
- name: Run tests | ||
run: > | ||
sudo | ||
K8S_EMUL_IMAGE=kyryloshpytsyaprismai/k8s-emul:sha-${GITHUB_SHA::7} | ||
--preserve-env=K8S_EMUL_IMAGE | ||
./run-tests |
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