Skip to content

Commit

Permalink
bug: addressing docker build error upon release
Browse files Browse the repository at this point in the history
  • Loading branch information
shanto268 authored Oct 13, 2024
1 parent 960f4e1 commit 496102d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:

- name: Build and tag Docker image
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/squadds_env:${{ github.event.release.tag_name }} .
docker tag ghcr.io/${{ github.repository_owner }}/squadds_env:${{ github.event.release.tag_name }} ghcr.io/${{ github.repository_owner }}/squadds_env:latest
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
docker build -t ghcr.io/$REPO_OWNER/squadds_env:${{ github.event.release.tag_name }} .
docker tag ghcr.io/$REPO_OWNER/squadds_env:${{ github.event.release.tag_name }} ghcr.io/$REPO_OWNER/squadds_env:latest
- name: Push Docker image to GitHub Packages
run: |
docker push ghcr.io/${{ github.repository_owner }}/squadds_env:${{ github.event.release.tag_name }}
docker push ghcr.io/${{ github.repository_owner }}/squadds_env:latest
REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
docker push ghcr.io/$REPO_OWNER/squadds_env:${{ github.event.release.tag_name }}
docker push ghcr.io/$REPO_OWNER/squadds_env:latest

0 comments on commit 496102d

Please sign in to comment.