diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index eced554..7dcf18a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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