File tree Expand file tree Collapse file tree 1 file changed +28
-2
lines changed
Expand file tree Collapse file tree 1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches :
88 - main
9-
9+
10+ env :
11+ REGISTRY : ghcr.io
12+ IMAGE_NAME : ${{ github.repository }}
13+
1014jobs :
1115 build-image :
1216 name : Build the DBT Image
1317 runs-on : ubuntu-latest
18+ permissions :
19+ contents : read
20+ packages : write
21+ attestations : write
22+ id-token : write
1423 steps :
15- - uses : actions/checkout@v3
24+ - uses : actions/checkout@v4
1625
26+ - name : Log in to the Container registry
27+ uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
28+ with :
29+ registry : ${{ env.REGISTRY }}
30+ username : ${{ github.actor }}
31+ password : ${{ secrets.GITHUB_TOKEN }}
32+
33+ - name : Extract metadata (tags, labels) for Docker
34+ id : meta
35+ uses : docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
36+ with :
37+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
38+
1739 - name : Build and push Docker image
1840 uses : docker/build-push-action@v6
1941 with :
2042 push : ${{ github.event_name != 'pull_request' }}
43+ tags : ${{ steps.meta.outputs.tags }}
44+ labels : ${{ steps.meta.outputs.labels }}
45+
46+
2147
2248 deploy-cloudformation :
2349 name : Deploy CloudFormation Stack
You can’t perform that action at this time.
0 commit comments