Skip to content

Commit

Permalink
Image name change
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshhewabi committed Oct 3, 2023
1 parent 0d82f26 commit d224ef3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,18 @@ jobs:
- name: Print variables
run: echo $GITHUB_REPOSITORY $IMAGE_NAME $GITHUB_SHA

- name: Read Docker Image Identifiers
run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')

- name: Print variables again
run: echo ${{ env.IMAGE_REPOSITORY }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/$GITHUB_REPOSITORY/$IMAGE_NAME:$GITHUB_SHA
tags: ghcr.io/${{ env.IMAGE_REPOSITORY }}/$IMAGE_NAME:$GITHUB_SHA

deploy:
needs: docker_build
Expand Down

0 comments on commit d224ef3

Please sign in to comment.