File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 - name : ⬇️ Checkout repo
5151 uses : actions/checkout@v3
5252
53- - name : 🐳 Docker Build
54- run : |
55- docker build -t trigger_build_image -f docker/Dockerfile .
53+ - name : Set up Docker Buildx
54+ uses : docker/setup-buildx-action@v2
5655
5756 # Push to Public Registry
5857 - name : Login to GitHub Container Registry
@@ -62,11 +61,12 @@ jobs:
6261 username : ${{ github.actor }}
6362 password : ${{ secrets.GITHUB_TOKEN }}
6463
65- - name : Push to GitHub Container Registry
66- run : |
67- docker tag trigger_build_image $REGISTRY/$REPOSITORY:$IMAGE_TAG
68- docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
69- env :
70- REGISTRY : ghcr.io/triggerdogdev
71- REPOSITORY : trigger.dev
72- IMAGE_TAG : ${{ github.head_ref || github.ref_name }}
64+ - name : Build and push
65+ uses : docker/build-push-action@v4
66+ with :
67+ context : .
68+ file : ./docker/Dockerfile
69+ push : true
70+ tags : ghcr.io/${{ github.repository }}:latest
71+ cache-from : type=registry,ref=user/app:latest
72+ cache-to : type=inline
You can’t perform that action at this time.
0 commit comments