docker image

This commit is contained in:
Carlos Polop 2025-01-09 09:51:18 +01:00
parent f2b76a4938
commit deafa9f269
18 changed files with 39 additions and 34 deletions

View File

@ -13,6 +13,11 @@ on:
concurrency: build_docker concurrency: build_docker
permissions:
packages: write
id-token: write
contents: write
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -33,7 +38,7 @@ jobs:
- name: Build and push Docker image - name: Build and push Docker image
run: | run: |
# Define image name # 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 # Build Docker image
docker build -t $IMAGE_NAME:latest . docker build -t $IMAGE_NAME:latest .

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
steps: steps:

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Afrikaans LANGUAGE: Afrikaans
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: German LANGUAGE: German
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Greek LANGUAGE: Greek
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Spanish LANGUAGE: Spanish
@ -76,4 +76,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: French LANGUAGE: French
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Hindi LANGUAGE: Hindi
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Italian LANGUAGE: Italian
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Japanese LANGUAGE: Japanese
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Korean LANGUAGE: Korean
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Polish LANGUAGE: Polish
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Portuguese LANGUAGE: Portuguese
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Serbian LANGUAGE: Serbian
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Swahili LANGUAGE: Swahili
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Turkish LANGUAGE: Turkish
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Ukranian LANGUAGE: Ukranian
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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

View File

@ -22,7 +22,7 @@ jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest image: ghcr.io/hacktricks-wiki/hacktricks/translator-image:latest
environment: prod environment: prod
env: env:
LANGUAGE: Chinese LANGUAGE: Chinese
@ -77,4 +77,4 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync 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