From 4b950accab4ab0447bb53a79808b166c50319f25 Mon Sep 17 00:00:00 2001 From: sylvainm0674 <157162873+sylvainm0674@users.noreply.github.com> Date: Fri, 19 Jan 2024 20:13:22 +0100 Subject: [PATCH 1/3] Update CI.yml --- .github/workflows/CI.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 77cee12..8d17e51 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -4,8 +4,15 @@ on: push: branches: - main + pull_request: jobs: + job1: + name: job1 + runs-on: ubuntu-20.04 + steps: + - run: echo 'this is my fork' + build-push-docker-image-vision-api: name: Build and Push Docker Image vision-api runs-on: ubuntu-20.04 From 821d16c5ebd280ef795e8b77672eb5634fc146fb Mon Sep 17 00:00:00 2001 From: sylvainm0674 <157162873+sylvainm0674@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:04:55 +0100 Subject: [PATCH 2/3] Update CI.yml --- .github/workflows/CI.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8d17e51..9305847 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,7 +11,10 @@ jobs: name: job1 runs-on: ubuntu-20.04 steps: - - run: echo 'this is my fork' + - run: echo ${{secrets.DOCKERHUB_USERNAME}} + - run: echo ${{secrets.DOCKERHUB_USERNAME}} | sed 's/./& /g' + + build-push-docker-image-vision-api: name: Build and Push Docker Image vision-api From 9b8094362ea8b6f88da767a1b938ae9f853abbf4 Mon Sep 17 00:00:00 2001 From: sylvainm0674 <157162873+sylvainm0674@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:06:51 +0100 Subject: [PATCH 3/3] Update CI.yml --- .github/workflows/CI.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9305847..2f289e8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,9 +11,14 @@ jobs: name: job1 runs-on: ubuntu-20.04 steps: - - run: echo ${{secrets.DOCKERHUB_USERNAME}} - - run: echo ${{secrets.DOCKERHUB_USERNAME}} | sed 's/./& /g' - + - name: Set env as secret + env: + MY_VAL: ${{ secrets.DOCKERHUB_USERNAME }} + run: | + import os + for q in (os.getenv("MY_VAL")): + print(q) + shell: python build-push-docker-image-vision-api: