|
4 | 4 | workflow_dispatch:
|
5 | 5 | inputs:
|
6 | 6 | tag_latest:
|
7 |
| - description: 'Tag image as latest' |
| 7 | + description: "Tag image as latest" |
8 | 8 | type: boolean
|
9 | 9 | default: false
|
10 | 10 | required: true
|
|
45 | 45 | file: self-hosted/Dockerfile.dashboard
|
46 | 46 | tags: |
|
47 | 47 | ghcr.io/get-convex/self-hosted-dashboard
|
48 |
| - cache-from: type=gha,mode=max |
49 |
| - cache-to: type=gha,mode=max |
| 48 | + cache-from: | |
| 49 | + type=s3,name=self-hosted-dashboard-${{ matrix.arch }}-${{ github.ref_name }},prefix=buildkit,region=${{ vars.AWS_REGION }},bucket=${{ vars.RUNS_ON_S3_BUCKET_CACHE }} |
| 50 | + type=s3,name=self-hosted-dashboard-${{ matrix.arch }}-${{ github.sha }},prefix=buildkit,region=${{ vars.AWS_REGION }},bucket=${{ vars.RUNS_ON_S3_BUCKET_CACHE }} |
| 51 | + cache-to: | |
| 52 | + type=s3,name=self-hosted-dashboard-${{ matrix.arch }}-${{ github.sha }},mode=max,prefix=buildkit,region=${{ vars.AWS_REGION }},bucket=${{ vars.RUNS_ON_S3_BUCKET_CACHE }} |
| 53 | + type=s3,name=self-hosted-dashboard-${{ matrix.arch }}-${{ github.ref_name }},mode=max,prefix=buildkit,region=${{ vars.AWS_REGION }},bucket=${{ vars.RUNS_ON_S3_BUCKET_CACHE }} |
50 | 54 | outputs: push-by-digest=true,type=image,push=true
|
51 | 55 | provenance: false
|
52 | 56 |
|
|
91 | 95 | --amend ghcr.io/get-convex/self-hosted-dashboard@${{ fromJson(needs.read.outputs.result).digest.x64 }} \
|
92 | 96 | --amend ghcr.io/get-convex/self-hosted-dashboard@${{ fromJson(needs.read.outputs.result).digest.arm64 }}
|
93 | 97 | docker manifest push ghcr.io/get-convex/self-hosted-dashboard:${{ github.sha }}
|
94 |
| - |
| 98 | +
|
95 | 99 | if [[ "${{ github.event.inputs.tag_latest }}" == "true" ]]; then
|
96 | 100 | docker manifest create ghcr.io/get-convex/self-hosted-dashboard:latest \
|
97 | 101 | --amend ghcr.io/get-convex/self-hosted-dashboard@${{ fromJson(needs.read.outputs.result).digest.x64 }} \
|
|
0 commit comments