From 7c1f0ea689a0fb4e233a2bdee5d303143b665a2c Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Sat, 9 Dec 2023 16:58:18 +0300 Subject: [PATCH] ci(compliance): fix go cache --- .github/workflows/compliance.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml index 37456d9c..fe434fc2 100644 --- a/.github/workflows/compliance.yml +++ b/.github/workflows/compliance.yml @@ -19,6 +19,17 @@ jobs: go-version: "1.21.x" cache: false + - uses: docker/setup-buildx-action@v3 + + - name: Docker log in + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - uses: actions/checkout@v4 + - name: Get Go environment id: go-env run: | @@ -36,17 +47,6 @@ jobs: restore-keys: | Compliance-${{ runner.os }}-go-${{ env.goversion }} - - uses: docker/setup-buildx-action@v3 - - - name: Docker log in - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - uses: actions/checkout@v4 - - name: Go build env: CGO_ENABLED: 0