diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index a3985e8..626ad8a 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -17,6 +17,26 @@ jobs: username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Cache Go modules + uses: actions/cache@v3 + with: + path: | + ~/go/pkg/mod + ~/go/bin + key: go-mod-{{ hashFiles('**/go.sum') }} + restore-keys: | + go-mod- + + # Set up Go + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + # Download modules + - name: Go mod tidy + run: go mod tidy + - name: ls run: ls