Skip to content

Commit 60e03e1

Browse files
committed
build: prepare for pushing to github registry
1 parent 7c730dd commit 60e03e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci_fast.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
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"

0 commit comments

Comments
 (0)