File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4444 password : ${{ secrets.CR_PAT }}
4545
4646 - name : Build, tag, and push image to Github
47+ env :
48+ DEVOPS_DOCKER_FILE : ./devops/precompiled.dockerfile
4749 run : |
4850 baseRef="${GITHUB_REF#*/}"
4951 baseRef="${baseRef#*/}"
@@ -56,11 +58,11 @@ jobs:
5658 ;;
5759 esac
5860 echo "using tag: --${imageTag}--"
59- docker build -t ghcr.io/cmu-delphi/www-main :$imageTag --file ./devops/precompiled.dockerfile .
60- docker push ghcr.io/cmu-delphi/www-main :$imageTag
61+ docker build -t ghcr.io/${{ github.repository_owner }}/${{ github.repository.name }} :$imageTag --file ${DEVOPS_DOCKER_FILE} .
62+ docker push ghcr.io/${{ github.repository_owner }}/${{ github.repository.name }} :$imageTag
6163
6264 # trigger a webhook update
6365 curl -H "Authorization: Bearer ${{ secrets.DELPHI_DEPLOY_WEBHOOK_TOKEN }}" \
6466 -X POST ${{ secrets.DELPHI_DEPLOY_WEBHOOK_URL }} \
6567 -H "Content-Type: application/x-www-form-urlencoded" \
66- -d "repository=ghcr.io/cmu-delphi/www-main &tag=$imageTag"
68+ -d "repository=ghcr.io/cmu-delphi/${{ github.repository.name }} &tag=$imageTag"
You can’t perform that action at this time.
0 commit comments