Update docker-push.yml

This commit is contained in:
2023-06-12 15:06:06 +10:00
committed by GitHub
parent 3ae523341a
commit bbca283b5a

View File

@@ -38,9 +38,14 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Transform tag to lowercase
id: lowercase
run: |
echo "::set-output name=TAG::$(echo ${{ env.IMAGE_TAG }} | tr '[:upper:]' '[:lower:]')"
- name: Build and push Docker image to GitHub Docker Registry - name: Build and push Docker image to GitHub Docker Registry
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
push: true push: true
tags: ghcr.io/${{ github.repository }}/api-websocket-bridge:${{ env.IMAGE_TAG | lower }} tags: ghcr.io/${{ github.repository }}/api-websocket-bridge:${{ steps.lowercase.outputs.TAG }}