1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-08 09:04:54 +00:00

reorganize steps to checkout as late as possible

This commit is contained in:
Jason Hall 2021-12-08 09:00:58 -05:00
parent 5c3989daf2
commit 70dae41fee

View file

@ -15,19 +15,10 @@ jobs:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
# Install tools.
- uses: actions/setup-go@v2
with:
go-version: 1.17.x
- uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
~/ko
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: imjasonh/setup-ko@v0.4
env:
KO_DOCKER_REPO: gcr.io/kontaindotme
@ -47,7 +38,19 @@ jobs:
create_credentials_file: true
- run: gcloud auth configure-docker
# Deploy and test
# Checkout code.
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
~/ko
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# Deploy and test.
- run: ./deploy.sh
env:
KOCACHE: ~/ko