diff --git a/.github/workflows/publish-tag-images.yml b/.github/workflows/publish-tag-images.yml index 3a1ea3283e..a323ee6f48 100644 --- a/.github/workflows/publish-tag-images.yml +++ b/.github/workflows/publish-tag-images.yml @@ -1,10 +1,12 @@ name: Publish Docker tag images -on: +on: push: tags: - 'v[0-9]+.[0-9]+.[0-9]+' - 'v[0-9].[0-9].[0-9]-testnet' + branches: + - 'use-ga-cache' env: DOCKER_REGISTRY: europe-docker.pkg.dev @@ -13,12 +15,12 @@ env: jobs: build-docker: permissions: - contents: "read" - id-token: "write" + contents: 'read' + id-token: 'write' runs-on: ubuntu-latest steps: - name: Checkout ${{ inputs.sha }} - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup buildx uses: docker/setup-buildx-action@v2 @@ -27,9 +29,9 @@ jobs: id: gcpauth uses: google-github-actions/auth@v1 with: - create_credentials_file: "true" - workload_identity_provider: "projects/311968610280/locations/global/workloadIdentityPools/github/providers/github" - service_account: "artifact-deployer@lks-lz-management.iam.gserviceaccount.com" + create_credentials_file: 'true' + workload_identity_provider: 'projects/311968610280/locations/global/workloadIdentityPools/github/providers/github' + service_account: 'artifact-deployer@lks-lz-management.iam.gserviceaccount.com' - name: login run: |- @@ -40,7 +42,8 @@ jobs: with: context: . file: ./Dockerfile - push: true + push: false + cache-from: type=gha tags: | - ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ github.ref_name }} + ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:v1.7.3-test ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:latest diff --git a/next.config.js b/next.config.js index 521d101a06..9ce5f0e4bd 100644 --- a/next.config.js +++ b/next.config.js @@ -38,7 +38,7 @@ const moduleExports = { redirects, headers, output: 'standalone', - productionBrowserSourceMaps: process.env.GENERATE_SOURCEMAPS === 'true', + productionBrowserSourceMaps: true, }; module.exports = withRoutes(moduleExports);