mirror of
https://github.com/imjasonh/kontain.me
synced 2026-07-08 09:04:54 +00:00
checkout first, bump some deps, drop caching
This commit is contained in:
parent
5777da7c62
commit
e423b4f8ad
1 changed files with 4 additions and 14 deletions
18
.github/workflows/deploy.yaml
vendored
18
.github/workflows/deploy.yaml
vendored
|
|
@ -15,8 +15,10 @@ jobs:
|
|||
id-token: write
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# Install tools.
|
||||
- uses: actions/setup-go@v2
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.17.x
|
||||
- uses: imjasonh/setup-ko@v0.4
|
||||
|
|
@ -33,22 +35,10 @@ jobs:
|
|||
- uses: google-github-actions/setup-gcloud@v0.6.0
|
||||
with:
|
||||
project_id: kontaindotme
|
||||
- name: Login
|
||||
- name: Login to GCR
|
||||
run: |
|
||||
gcloud auth print-access-token | ko login gcr.io --username=oauth2accesstoken --password-stdin
|
||||
|
||||
# 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue