Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Update build_and_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linhnt-hub authored Jun 25, 2024
1 parent 39febee commit 5d4845d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ jobs:
password: '${{ secrets.GITHUB_TOKEN }}'
- name: Push image to GitHub Container Registry
run: |
docker tag my-streamlit-app:latest ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:v1.${{ github.run_number }}
docker push ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:v1.${{ github.run_number }}
REPO_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
docker tag my-streamlit-app:latest ghcr.io/${{ github.repository_owner }}/${{ REPO_NAME }}:v1.${{ github.run_number }}
docker push ghcr.io/${{ github.repository_owner }}/${{ REPO_NAME }}:v1.${{ github.run_number }}
- name: Stop and remove container
if: always()
run: docker rm -f streamlit-container

0 comments on commit 5d4845d

Please sign in to comment.