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

Revert "reorganize steps to checkout as late as possible"

This reverts commit 73935b4123.
This commit is contained in:
Jason Hall 2021-12-09 13:08:38 -05:00
parent 52b079907e
commit 5c3989daf2

View file

@ -15,10 +15,19 @@ jobs:
id-token: write
contents: read
steps:
# Install tools.
- uses: actions/checkout@v2
- 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
@ -38,19 +47,7 @@ jobs:
create_credentials_file: true
- run: gcloud auth configure-docker
# 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.
# Deploy and test
- run: ./deploy.sh
env:
KOCACHE: ~/ko