Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Use an additional step to lowercase the Docker image name
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffo99 committed Apr 29, 2022
1 parent d34f017 commit 2653013
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,32 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: "🔽 Find the lowercase name of the repository"
id: reponame
uses: ASzc/change-string-case-action@v2
with:
string: ${{ github.repository }}

- name: "🏗 Build and push the Docker image for thorunimore.telegram"
uses: docker/build-push-action@v2
with:
target: "telegram"
tags: >-
ghcr.io/${{ github.repository }}-telegram:${{ steps.semver.outputs.precedence }},
ghcr.io/${{ github.repository }}-telegram:${{ steps.semver.outputs.core }},
ghcr.io/${{ github.repository }}-telegram:${{ steps.semver.outputs.pair }},
ghcr.io/${{ github.repository }}-telegram:${{ steps.semver.outputs.major }},
ghcr.io/${{ github.repository }}-telegram:latest
ghcr.io/${{ steps.reponame.outputs.lowercase }}-telegram:${{ steps.semver.outputs.precedence }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}-telegram:${{ steps.semver.outputs.core }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}-telegram:${{ steps.semver.outputs.pair }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}-telegram:${{ steps.semver.outputs.major }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}-telegram:latest
push: true

- name: "🏗 Build and push the Docker image for thorunimore.web"
uses: docker/build-push-action@v2
with:
target: "web"
tags: >-
ghcr.io/${{ github.repository }}-web:${{ steps.semver.outputs.precedence }},
ghcr.io/${{ github.repository }}-web:${{ steps.semver.outputs.core }},
ghcr.io/${{ github.repository }}-web:${{ steps.semver.outputs.pair }},
ghcr.io/${{ github.repository }}-web:${{ steps.semver.outputs.major }},
ghcr.io/${{ github.repository }}-web:latest
ghcr.io/${{ steps.reponame.outputs.lowercase }}-web:${{ steps.semver.outputs.precedence }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}-web:${{ steps.semver.outputs.core }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}-web:${{ steps.semver.outputs.pair }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}-web:${{ steps.semver.outputs.major }},
ghcr.io/${{ steps.reponame.outputs.lowercase }}-web:latest
push: true

0 comments on commit 2653013

Please sign in to comment.