From deafa9f26982c88ab1b400580704a5b29301b4b0 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Thu, 9 Jan 2025 09:51:18 +0100 Subject: [PATCH] docker image --- .github/workflows/build_docker.yml | 7 ++++++- .github/workflows/build_master.yml | 2 +- .github/workflows/translate_af.yml | 4 ++-- .github/workflows/translate_de.yml | 4 ++-- .github/workflows/translate_el.yml | 4 ++-- .github/workflows/translate_es.yml | 4 ++-- .github/workflows/translate_fr.yml | 4 ++-- .github/workflows/translate_hi.yml | 4 ++-- .github/workflows/translate_it.yml | 4 ++-- .github/workflows/translate_ja.yml | 4 ++-- .github/workflows/translate_ko.yml | 4 ++-- .github/workflows/translate_pl.yml | 4 ++-- .github/workflows/translate_pt.yml | 4 ++-- .github/workflows/translate_sr.yml | 4 ++-- .github/workflows/translate_sw.yml | 4 ++-- .github/workflows/translate_tr.yml | 4 ++-- .github/workflows/translate_uk.yml | 4 ++-- .github/workflows/translate_zh.yml | 4 ++-- 18 files changed, 39 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index cdccd1799..c4d875109 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -13,6 +13,11 @@ on: concurrency: build_docker +permissions: + packages: write + id-token: write + contents: write + jobs: build-and-push: runs-on: ubuntu-latest @@ -33,7 +38,7 @@ jobs: - name: Build and push Docker image run: | # Define image name - IMAGE_NAME=ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image + IMAGE_NAME=ghcr.io/hacktricks-wiki/hacktricks/translator-image # Build Docker image docker build -t $IMAGE_NAME:latest . diff --git a/.github/workflows/build_master.yml b/.github/workflows/build_master.yml index d95fda241..50defdda2 100644 --- a/.github/workflows/build_master.yml +++ b/.github/workflows/build_master.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod steps: diff --git a/.github/workflows/translate_af.yml b/.github/workflows/translate_af.yml index 86568c56f..28be1853e 100644 --- a/.github/workflows/translate_af.yml +++ b/.github/workflows/translate_af.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Afrikaans @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_de.yml b/.github/workflows/translate_de.yml index e39aa830e..0f74ee121 100644 --- a/.github/workflows/translate_de.yml +++ b/.github/workflows/translate_de.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: German @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_el.yml b/.github/workflows/translate_el.yml index 31966505c..31ec1c31b 100644 --- a/.github/workflows/translate_el.yml +++ b/.github/workflows/translate_el.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Greek @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_es.yml b/.github/workflows/translate_es.yml index e70cff7b1..52dbafa12 100644 --- a/.github/workflows/translate_es.yml +++ b/.github/workflows/translate_es.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Spanish @@ -76,4 +76,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_fr.yml b/.github/workflows/translate_fr.yml index e878517fb..26d82bbf7 100644 --- a/.github/workflows/translate_fr.yml +++ b/.github/workflows/translate_fr.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: French @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_hi.yml b/.github/workflows/translate_hi.yml index 167c4ef1b..4b63f541e 100644 --- a/.github/workflows/translate_hi.yml +++ b/.github/workflows/translate_hi.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Hindi @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_it.yml b/.github/workflows/translate_it.yml index a4adfa951..fa2733e5d 100644 --- a/.github/workflows/translate_it.yml +++ b/.github/workflows/translate_it.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Italian @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_ja.yml b/.github/workflows/translate_ja.yml index 60ea24548..37fcf3951 100644 --- a/.github/workflows/translate_ja.yml +++ b/.github/workflows/translate_ja.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Japanese @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_ko.yml b/.github/workflows/translate_ko.yml index 48ce04310..3f95ed7a6 100644 --- a/.github/workflows/translate_ko.yml +++ b/.github/workflows/translate_ko.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Korean @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_pl.yml b/.github/workflows/translate_pl.yml index 8a762c2ea..f07657db5 100644 --- a/.github/workflows/translate_pl.yml +++ b/.github/workflows/translate_pl.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Polish @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_pt.yml b/.github/workflows/translate_pt.yml index af55f56d9..ac8670354 100644 --- a/.github/workflows/translate_pt.yml +++ b/.github/workflows/translate_pt.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Portuguese @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_sr.yml b/.github/workflows/translate_sr.yml index 81ef026d3..79ba7d1ea 100644 --- a/.github/workflows/translate_sr.yml +++ b/.github/workflows/translate_sr.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Serbian @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_sw.yml b/.github/workflows/translate_sw.yml index a7a87a454..d6a7bcd62 100644 --- a/.github/workflows/translate_sw.yml +++ b/.github/workflows/translate_sw.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Swahili @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_tr.yml b/.github/workflows/translate_tr.yml index d4200fcdb..56922a0be 100644 --- a/.github/workflows/translate_tr.yml +++ b/.github/workflows/translate_tr.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Turkish @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_uk.yml b/.github/workflows/translate_uk.yml index c2dad7a69..97d5aed22 100644 --- a/.github/workflows/translate_uk.yml +++ b/.github/workflows/translate_uk.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Ukranian @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete diff --git a/.github/workflows/translate_zh.yml b/.github/workflows/translate_zh.yml index 742f6aa08..be377a153 100644 --- a/.github/workflows/translate_zh.yml +++ b/.github/workflows/translate_zh.yml @@ -22,7 +22,7 @@ jobs: run-translation: runs-on: ubuntu-latest container: - image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest + image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest environment: prod env: LANGUAGE: Chinese @@ -77,4 +77,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete