chore(actions): trigger rebuild to get rid of the broken GH cache (#2083)

* chore(actions): trigger rebuild to get rid of the broken GH cache

* Update zitadel.yml

* invalidate cache

* update action

* simplify caching scopes

* use mode max

* Update zitadel.yml
This commit is contained in:
Florian Forster 2021-07-28 09:56:58 +02:00 committed by GitHub
parent 291b04ee1e
commit 6ad565bb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 27 deletions

View File

@ -65,16 +65,15 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
with: with:
## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged ## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged
version: v0.6.0-rc1 version: v0.6.0
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug buildkitd-flags: --debug
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v2
with: with:
context: . context: .
file: ./build/zitadel/Dockerfile file: ./build/zitadel/Dockerfile
platforms: linux/amd64 platforms: linux/amd64
cache-from: type=gha,scope=zitadel cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,mode=max,scope=zitadel cache-to: type=gha,scope=${{ github.workflow }}
outputs: type=local,dest=/tmp/zitadel outputs: type=local,dest=/tmp/zitadel
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
@ -92,8 +91,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
with: with:
## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged ## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged
version: v0.6.0-rc1 version: v0.6.0
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug buildkitd-flags: --debug
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v2
with: with:
@ -101,7 +99,7 @@ jobs:
file: ./build/zitadel/Dockerfile file: ./build/zitadel/Dockerfile
platforms: linux/amd64 platforms: linux/amd64
target: go-codecov target: go-codecov
cache-from: type=gha,scope=zitadel cache-from: type=gha,scope=${{ github.workflow }}
outputs: type=local,dest=/tmp/zitadel outputs: type=local,dest=/tmp/zitadel
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v1
with: with:
@ -119,16 +117,15 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
with: with:
## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged ## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged
version: v0.6.0-rc1 version: v0.6.0
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug buildkitd-flags: --debug
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v2
with: with:
context: . context: .
file: ./build/console/Dockerfile file: ./build/console/Dockerfile
platforms: linux/amd64 platforms: linux/amd64
cache-from: type=gha,scope=zitadel-console #cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,mode=max,scope=zitadel-console cache-to: type=gha,scope=${{ github.workflow }},mode=max
outputs: type=local,dest=/tmp/zitadel-console outputs: type=local,dest=/tmp/zitadel-console
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
@ -155,8 +152,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
with: with:
## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged ## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged
version: v0.6.0-rc1 version: v0.6.0
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug buildkitd-flags: --debug
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
@ -171,8 +167,8 @@ jobs:
platforms: linux/amd64 platforms: linux/amd64
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.refs.outputs.sha_short }},${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.refs.outputs.short_ref }} tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.refs.outputs.sha_short }},${{ env.REGISTRY }}/${{ github.repository }}:${{ needs.refs.outputs.short_ref }}
push: true push: true
cache-from: type=gha,scope=zitadel-image cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,mode=max,scope=zitadel-image cache-to: type=gha,scope=${{ github.workflow }},mode=max
zitadel-operator: zitadel-operator:
name: Build ZITADEL Operator ${{ matrix.goos }}-${{ matrix.goarch }} name: Build ZITADEL Operator ${{ matrix.goos }}-${{ matrix.goarch }}
@ -191,8 +187,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
with: with:
## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged ## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged
version: v0.6.0-rc1 version: v0.6.0
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug buildkitd-flags: --debug
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v2
with: with:
@ -200,7 +195,7 @@ jobs:
file: ./build/operator/Dockerfile file: ./build/operator/Dockerfile
platforms: linux/amd64 platforms: linux/amd64
cache-from: type=gha,scope=${{ matrix.goos }}-${{ matrix.goarch }} cache-from: type=gha,scope=${{ matrix.goos }}-${{ matrix.goarch }}
cache-to: type=gha,mode=max,scope=${{ matrix.goos }}-${{ matrix.goarch }} cache-to: type=gha,scope=${{ matrix.goos }}-${{ matrix.goarch }},mode=max
outputs: type=local,dest=/tmp/operator outputs: type=local,dest=/tmp/operator
build-args: | build-args: |
OS=${{ matrix.goos }} OS=${{ matrix.goos }}
@ -233,8 +228,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
with: with:
## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged ## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged
version: v0.6.0-rc1 version: v0.6.0
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug buildkitd-flags: --debug
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v2
with: with:
@ -267,8 +261,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
with: with:
## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged ## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged
version: v0.6.0-rc1 version: v0.6.0
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug buildkitd-flags: --debug
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
@ -303,8 +296,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
with: with:
## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged ## Workaround until https://github.com/docker/build-push-action/issues/252#issuecomment-804898823 is merged
version: v0.6.0-rc1 version: v0.6.0
driver-opts: image=moby/buildkit:master
buildkitd-flags: --debug buildkitd-flags: --debug
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
@ -320,8 +312,8 @@ jobs:
platforms: linux/amd64 platforms: linux/amd64
tags: ${{ env.REGISTRY }}/${{ env.CRDB_IMAGE_NAME }}:${{ needs.refs.outputs.sha_short }},${{ env.REGISTRY }}/${{ env.CRDB_IMAGE_NAME }}:${{ needs.refs.outputs.short_ref }} tags: ${{ env.REGISTRY }}/${{ env.CRDB_IMAGE_NAME }}:${{ needs.refs.outputs.sha_short }},${{ env.REGISTRY }}/${{ env.CRDB_IMAGE_NAME }}:${{ needs.refs.outputs.short_ref }}
push: true push: true
cache-from: type=gha,scope=zitadel-cockroachdb cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,mode=max,scope=zitadel-cockroachdb cache-to: type=gha,scope=${{ github.workflow }}
release: release:
name: Semantic Release Images and Artifacts name: Semantic Release Images and Artifacts

View File

@ -25,4 +25,3 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac
## Further help ## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).