File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1616 types : [ published ]
1717
1818env :
19- REGISTRY : ajustesen
20- IMAGE_NAME : ${{ github.repository }}
2119 PLATFORMS : linux/amd64,linux/arm64,linux/arm/v7
2220
2321jobs :
@@ -40,17 +38,21 @@ jobs:
4038 username : ${{ secrets.DOCKER_USERNAME }}
4139 password : ${{ secrets.DOCKER_PASSWORD }}
4240
41+ - id : docker-image-to-lowercase
42+ name : Convert Docker image to lower case
43+ run : echo "DOCKER_IMAGE=$(echo ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
44+
4345 - name : Extract metadata (tags, labels) for Docker
4446 id : meta
4547 uses : docker/metadata-action@v4
4648 with :
47- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
49+ images : ${{ env.DOCKER_IMAGE }}
4850
4951 - name : Build and push image to Docker Hub
5052 uses : docker/build-push-action@v3
5153 with :
5254 context : .
5355 push : true
5456 platforms : ${{ env.PLATFORMS }}
55- tags : ajustesen/speedtest-tracker :latest
57+ tags : ${{ env.DOCKER_IMAGE }} :latest
5658 labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments