File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 build-and-push :
1111 runs-on : ubuntu-latest
12+ environment : STAGING
1213 steps :
13- - uses : actions/checkout@v4
14+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 // v4.2.2
1415
1516 - name : Set up Docker Buildx
16- uses : docker/setup-buildx-action@v3
17+ uses : docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 // v3.10.0
1718
18- - name : Login to Docker Hub
19- run : |
20- echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
19+ - name : name: Login to Docker Hub
20+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 // v3.4.0
21+ with :
22+ username : ${{ vars.DOCKERHUB_USERNAME }}
23+ password : ${{ secrets.DOCKERHUB_TOKEN }}
2124
2225 - name : Generate build tag
2326 run : |
2427 TIMESTAMP=$(date +'%Y%m%d')
2528 SHA=$(git rev-parse --short HEAD)
2629 echo "BUILD_TAG=nightly-${TIMESTAMP}-${SHA}" >> $GITHUB_ENV
2730
28- - name : Build & Push Docker image
29- uses : docker/build-push-action@v6
31+ - name : Build & Push image to registries
32+ uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 // v6.18.0
3033 with :
3134 context : source/typescript-node
3235 push : true
33- tags : ${{ secrets.DOCKERHUB_USERNAME }}/typescript-node:${{ env.BUILD_TAG }}
36+ tags : |
37+ ${{ secrets.DOCKERHUB_USERNAME }}/typescript-node:${{ env.BUILD_TAG }}
38+ ghcr.io/${{ github.repository_owner }}/typescript-node:${{ env.BUILD_TAG }}
3439 cache-from : type=gha
3540 cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments