File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed
Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,33 @@ concurrency:
1919 cancel-in-progress : true
2020
2121jobs :
22+ build-base :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v3
26+ - name : Set up Docker Buildx
27+ uses : docker/setup-buildx-action@v3
28+ - name : Login to GitHub Container Registry
29+ uses : docker/login-action@v3
30+ with :
31+ registry : ghcr.io
32+ username : ${{ github.actor }}
33+ password : ${{ secrets.GHCR_PAT }}
34+ - name : Build and push base
35+ run : |
36+ docker buildx build \
37+ --platform linux/arm64 \
38+ --provenance=false \
39+ --secret id=github_token,env=GITHUB_TOKEN \
40+ --target base \
41+ --tag ghcr.io/${{ github.repository_owner }}/lambda-shell-runtime:base \
42+ --push \
43+ .
44+ env :
45+ GITHUB_TOKEN : ${{ secrets.GHCR_PAT }}
46+
2247 build :
48+ needs : build-base
2349 runs-on : ubuntu-latest
2450 env :
2551 HTTP_CLI_VERSION : v1.0.1
Original file line number Diff line number Diff line change 3333 with :
3434 registry : ghcr.io
3535 username : ${{ github.actor }}
36- password : ${{ secrets.GITHUB_TOKEN }}
36+ password : ${{ secrets.GHCR_PAT }}
3737
3838 - name : Build and push base
3939 run : |
4646 --push \
4747 .
4848 env :
49- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+ GITHUB_TOKEN : ${{ secrets.GHCR_PAT }}
Original file line number Diff line number Diff line change 2929 with :
3030 registry : ghcr.io
3131 username : ${{ github.actor }}
32- password : ${{ secrets.GITHUB_TOKEN }}
32+ password : ${{ secrets.GHCR_PAT }}
3333
3434 - name : Build and push installers
3535 run : |
You can’t perform that action at this time.
0 commit comments