Skip to content

Commit

Permalink
ci: replace all refs to repo with gh vars
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 22, 2023
1 parent 9f8f8b9 commit 33123ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_ci_img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ jobs:
with:
context: src/backend
build_target: ci
image_name: ghcr.io/${{ github.repository }}/backend
image_tags: |
"ghcr.io/hotosm/fmtm/backend:ci-${{ github.ref_name }}"
"ghcr.io/${{ github.repository }}/backend:ci-${{ github.ref_name }}"
build_args: |
APP_VERSION=${{ github.ref_name }}
COMMIT_REF=${{ github.sha }}
8 changes: 4 additions & 4 deletions .github/workflows/build_odk_imgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
with:
context: odkcentral/api
image_tags: |
"ghcr.io/hotosm/fmtm/odkcentral:${{ vars.ODK_CENTRAL_TAG }}"
"ghcr.io/hotosm/fmtm/odkcentral:latest"
"ghcr.io/${{ github.repository }}/odkcentral:${{ vars.ODK_CENTRAL_TAG }}"
"ghcr.io/${{ github.repository }}/odkcentral:latest"
build_args: |
ODK_CENTRAL_TAG=${{ vars.ODK_CENTRAL_TAG }}
Expand All @@ -27,5 +27,5 @@ jobs:
with:
context: odkcentral/proxy
image_tags: |
"ghcr.io/hotosm/fmtm/odkcentral-proxy:${{ vars.ODK_CENTRAL_TAG }}"
"ghcr.io/hotosm/fmtm/odkcentral-proxy:latest"
"ghcr.io/${{ github.repository }}/odkcentral-proxy:${{ vars.ODK_CENTRAL_TAG }}"
"ghcr.io/${{ github.repository }}/odkcentral-proxy:latest"
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
build_openapi_json:
uses: hotosm/gh-workflows/.github/workflows/openapi_build.yml@main
with:
image: ghcr.io/hotosm/fmtm/backend:ci-${{ github.ref_name }}
image: ghcr.io/${{ github.repository }}/backend:ci-${{ github.ref_name }}
example_env_file_path: ".env.example"
output_path: docs/openapi.json

Expand All @@ -29,6 +29,6 @@ jobs:
- build_doxygen
- build_openapi_json
with:
image: ghcr.io/hotosm/fmtm/backend:ci-${{ github.ref_name }}
image: ghcr.io/${{ github.repository }}/backend:ci-${{ github.ref_name }}
doxygen: true
openapi: true

0 comments on commit 33123ee

Please sign in to comment.