Skip to content

Commit

Permalink
update docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
aremazeilles committed Dec 21, 2021
1 parent a27d2f1 commit 9110357
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: battila7/get-version-action@v2
- name: Check image name
env:
REPO_NAME: pi_sbs_hf
REPO_NAME: pi_sbs_human_factor
# not accepted as the repo contains uppercase letters
#REPO_NAME: ${{ github.event.repository.name }}
VERSION: ${{ steps.get_version.outputs.version }}
Expand All @@ -39,7 +39,7 @@ jobs:
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Build the Docker image
env:
REPO_NAME: pi_sbs_hf
REPO_NAME: pi_sbs_human_factor
# not accepted as the repo contains uppercase letters
#REPO_NAME: ${{ github.event.repository.name }}
VERSION: ${{ steps.get_version.outputs.version }}
Expand All @@ -48,13 +48,13 @@ jobs:
run: wget -O test_docker_call.py https://raw.githubusercontent.com/eurobench/docker_test/master/test_docker_call.py
- name: test the Docker image
env:
DOCKER_IMAGE: eurobenchtest/pi_sbs_hf:${{ steps.get_version.outputs.version }}
DOCKER_IMAGE: eurobenchtest/pi_sbs_human_factor:${{ steps.get_version.outputs.version }}
#DOCKER_IMAGE: eurobenchtest/${{ github.event.repository.name }}:${{ steps.get_version.outputs.version }}
TEST_PLAN: test/test_plan.xml
run: python3 test_docker_call.py
- name: Push to Docker hub
env:
REPO_NAME: pi_sbs_hf
REPO_NAME: pi_sbs_human_factor
# not accepted as the repo contains uppercase letters
#REPO_NAME: ${{ github.event.repository.name }}
VERSION: ${{ steps.get_version.outputs.version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
# not accepted as the repo contains uppercase letters
#REPO_NAME: ${{ github.event.repository.name }}
REPO_NAME: pi_sbs_hf
REPO_NAME: pi_sbs_human_factor
REPO_BRANCH: ${{ github.head_ref }}
run: docker build . --file Dockerfile --tag $REPO_NAME:$REPO_BRANCH

Expand All @@ -36,5 +36,5 @@ jobs:
TEST_PLAN: test/test_plan.xml
#not accepted as the repo contains uppercase letters
#DOCKER_IMAGE: ${{ github.event.repository.name }}:${{ github.head_ref }}
DOCKER_IMAGE: pi_sbs_hf:${{ github.head_ref }}
DOCKER_IMAGE: pi_sbs_human_factor:${{ github.head_ref }}
run: python3 test_docker_call.py
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
EVENT_NAME: ${{ github.event_name }}
# not accepted as the repo contains uppercase letters
#REPO_NAME: ${{ github.event.repository.name }}
REPO_NAME: pi_sbs_hf
REPO_NAME: pi_sbs_human_factor
REPO_HEAD_REF: ${{ github.head_ref }}
REPO_REF: ${{ github.ref}}
run: echo "event name $EVENT_NAME head_branch $REPO_HEAD_REF $REPO_REF"
Expand All @@ -25,7 +25,7 @@ jobs:
id: getbranchname
- name: Check image name
env:
REPO_NAME: pi_sbs_hf
REPO_NAME: pi_sbs_human_factor
#not accepted as the repo contains uppercase letters
#REPO_NAME: ${{ github.event.repository.name }}
BRANCH_NAME: ${{ steps.getbranchname.outputs.branch }}
Expand All @@ -34,7 +34,7 @@ jobs:
echo "docker image name would be $REPO_NAME:${BRANCH_NAME}"
- name: Build the Docker image
env:
REPO_NAME: pi_sbs_hf
REPO_NAME: pi_sbs_human_factor
#not accepted as the repo contains uppercase letters
#REPO_NAME: ${{ github.event.repository.name }}
#REPO_NAME: ${{ github.event.repository.name }}
Expand All @@ -45,5 +45,5 @@ jobs:
env:
TEST_PLAN: test/test_plan.xml
#DOCKER_IMAGE: ${{ github.event.repository.name }}:${{ steps.getbranchname.outputs.branch }}
DOCKER_IMAGE: pi_sbs_hf:${{ steps.getbranchname.outputs.branch }}
DOCKER_IMAGE: pi_sbs_human_factor:${{ steps.getbranchname.outputs.branch }}
run: python3 test_docker_call.py

0 comments on commit 9110357

Please sign in to comment.