Skip to content

Commit

Permalink
Implement suffix image support for self-hosted workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 6, 2024
1 parent 7f542a4 commit a354ee1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
env:
CIUXCONFIG: /tmp/ciux.sh
CIUX_VERSION: 927153e3f
CIUX_VERSION: 927153e3f
GHA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
SUFFIX: noscience
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-noscience.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
call-workflow-passing-data:
uses: ./.github/workflows/e2e.yml
with:
noscience: true
suffix: noscience
secrets:
registry_username: ${{ secrets.REGISTRY_USERNAME }}
registry_token: ${{ secrets.REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/e2e-science.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
call-workflow-passing-data:
uses: ./.github/workflows/e2e.yml
with:
noscience: false
suffix: ""
secrets:
registry_username: ${{ secrets.REGISTRY_USERNAME }}
registry_token: ${{ secrets.REGISTRY_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Reusable workflow for Fink self-hosted e2e tests"
on:
workflow_call:
inputs:
noscience:
suffix:
required: true
type: string
secrets:
Expand All @@ -13,9 +13,9 @@ on:
required: true
env:
CIUXCONFIG: /tmp/ciux.sh
CIUX_VERSION: 927153e3f
CIUX_VERSION: 927153e3f
GHA_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
NOSCIENCE: ${{ inputs.noscience }}
SUFFIX: ${{ inputs.suffix }}
# Override the self-hosted runner value
POD_NAMESPACE: default
CI_REPO: docker-registry.docker-registry:5000
Expand All @@ -37,7 +37,7 @@ jobs:
run: go install github.com/k8s-school/ciux@"${{ env.CIUX_VERSION }}"
- name: Build image if not present in registry
run: |
./build.sh
./build.sh -s "${{ env.SUFFIX }}" -r "${{ env.CI_REPO }}"
- name: Push image to local registry
id: push
run: |
Expand Down

0 comments on commit a354ee1

Please sign in to comment.