File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1515
1616env :
1717 REGISTRY : ghcr.io
18- IMAGE_NAME : ${{ github.repository }}
1918
2019jobs :
2120 build-and-push-image :
2827 steps :
2928 - name : Checkout repository
3029 uses : actions/checkout@v4
30+ - name : downcase REPO
31+ run : |
32+ echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
3133 - name : Login to the Container registry
3234 uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
3335 with :
@@ -44,11 +46,11 @@ jobs:
4446 env :
4547 LITCRYPT_ENCRYPT_KEY : ${{ secrets.LITCRYPT_ENCRYPT_KEY }}
4648 STRIPE_SECRET : ${{ secrets.STRIPE_SECRET }}
47- run : docker compose push
49+ run : docker compose build -- push
4850
4951 - name : Push Docker image
5052 run : |
5153 IMG_NAME=${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
52- IMAGE_TAG=${{ inputs.tag || steps.meta.outputs.labels.org.opencontainers.image.version }}
54+ IMAGE_TAG=${{ inputs.tag || steps.meta.outputs.labels.org.opencontainers.image.version || 'latest' }}
5355 docker tag ${{ env.IMAGE_NAME }}:$IMAGE_TAG $IMG_NAME:$IMAGE_TAG
5456 docker push $IMG_NAME:$IMAGE_TAG
You can’t perform that action at this time.
0 commit comments