From a1cfaa5310a9e34cc3af9d0344d27d9a4e17be6b Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 8 Oct 2025 11:36:47 +0200 Subject: [PATCH 1/6] fix: add nudenet workflow --- .github/workflows/nudenet.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/nudenet.yml b/.github/workflows/nudenet.yml index 8f1f6908d8..c3da2133cc 100644 --- a/.github/workflows/nudenet.yml +++ b/.github/workflows/nudenet.yml @@ -15,3 +15,27 @@ jobs: steps: - name: Checkout uses: actions/checkout@v5 + + - name: Checkout Nudenet + uses: actions/checkout@v5 + with: + repository: 'notAi-tech/NudeNet' + path: nudenet + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ vars.AWS_ROLE_ARN }} + aws-region: ${{ vars.AWS_REGION }} + + - name: Auth to the ECR + run: bash ./docker/auth.sh ${{ vars.GRAASP_PUBLIC_ECR }} ${{ vars.AWS_REGION }} + shell: bash + + - name: Build the Nudenet image + run: | + docker build -t ${TAG} -f nudenet/fastdeploy_recipe/fastDeploy.auto_dockerfile ./nudenet/fastdeploy_recipe/ + docker push ${TAG} + shell: bash + env: + TAG: '${{ vars.GRAASP_PUBLIC_ECR }}:nudenet-latest' From 19fec0da9cfe4bc438abcdfd42ca7271d1a3ace5 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 8 Oct 2025 11:43:53 +0200 Subject: [PATCH 2/6] fix: remove usage of env for OIDC to work --- .github/workflows/nudenet.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/nudenet.yml b/.github/workflows/nudenet.yml index c3da2133cc..cdd5048361 100644 --- a/.github/workflows/nudenet.yml +++ b/.github/workflows/nudenet.yml @@ -10,7 +10,6 @@ jobs: build: name: Build Nudenet runs-on: ubuntu-24.04-arm - environment: production steps: - name: Checkout From 30e0b8598c3ea64530bbe5569d7f9176cfc2e946 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 8 Oct 2025 11:46:04 +0200 Subject: [PATCH 3/6] fix: hard-code region --- .github/workflows/nudenet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nudenet.yml b/.github/workflows/nudenet.yml index cdd5048361..c5793c0f96 100644 --- a/.github/workflows/nudenet.yml +++ b/.github/workflows/nudenet.yml @@ -25,7 +25,7 @@ jobs: uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ vars.AWS_ROLE_ARN }} - aws-region: ${{ vars.AWS_REGION }} + aws-region: eu-central-2 - name: Auth to the ECR run: bash ./docker/auth.sh ${{ vars.GRAASP_PUBLIC_ECR }} ${{ vars.AWS_REGION }} From 8367958e009f64f1eeba0c7621bfa31ee7e78219 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 8 Oct 2025 11:57:00 +0200 Subject: [PATCH 4/6] fix: add env back --- .github/workflows/nudenet.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nudenet.yml b/.github/workflows/nudenet.yml index c5793c0f96..c3da2133cc 100644 --- a/.github/workflows/nudenet.yml +++ b/.github/workflows/nudenet.yml @@ -10,6 +10,7 @@ jobs: build: name: Build Nudenet runs-on: ubuntu-24.04-arm + environment: production steps: - name: Checkout @@ -25,7 +26,7 @@ jobs: uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ vars.AWS_ROLE_ARN }} - aws-region: eu-central-2 + aws-region: ${{ vars.AWS_REGION }} - name: Auth to the ECR run: bash ./docker/auth.sh ${{ vars.GRAASP_PUBLIC_ECR }} ${{ vars.AWS_REGION }} From 4d54606cff6e31952d51f41cfd413ad5945a5403 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 8 Oct 2025 12:01:52 +0200 Subject: [PATCH 5/6] fix: tag value --- .github/workflows/nudenet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nudenet.yml b/.github/workflows/nudenet.yml index c3da2133cc..8d92f90178 100644 --- a/.github/workflows/nudenet.yml +++ b/.github/workflows/nudenet.yml @@ -38,4 +38,4 @@ jobs: docker push ${TAG} shell: bash env: - TAG: '${{ vars.GRAASP_PUBLIC_ECR }}:nudenet-latest' + TAG: '${{ vars.GRAASP_PUBLIC_ECR }}/graasp:nudenet-latest' From 8224b99092fcb72294545645ba7165ea409b5820 Mon Sep 17 00:00:00 2001 From: spaenleh Date: Wed, 8 Oct 2025 12:07:04 +0200 Subject: [PATCH 6/6] fix: use nudenet from graasp --- .github/workflows/nudenet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nudenet.yml b/.github/workflows/nudenet.yml index 8d92f90178..ec583c4d85 100644 --- a/.github/workflows/nudenet.yml +++ b/.github/workflows/nudenet.yml @@ -19,7 +19,7 @@ jobs: - name: Checkout Nudenet uses: actions/checkout@v5 with: - repository: 'notAi-tech/NudeNet' + repository: 'graasp/NudeNet' path: nudenet - name: Configure AWS Credentials