From f35af07a94e57fe2ca8459d0b2fa8a47b9e66bb3 Mon Sep 17 00:00:00 2001 From: newtondotcom Date: Wed, 3 Jan 2024 23:37:21 +0100 Subject: [PATCH] two differents gh actions jobs --- .github/workflows/{push.yml => cleans3.yml} | 23 +--------------- .github/workflows/worker.yml | 29 +++++++++++++++++++++ 2 files changed, 30 insertions(+), 22 deletions(-) rename .github/workflows/{push.yml => cleans3.yml} (50%) create mode 100644 .github/workflows/worker.yml diff --git a/.github/workflows/push.yml b/.github/workflows/cleans3.yml similarity index 50% rename from .github/workflows/push.yml rename to .github/workflows/cleans3.yml index 1c3685c..333b720 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/cleans3.yml @@ -1,31 +1,10 @@ --- - name: Build and Push Docker Images + name: Image to clean S3 buckets env: - WORKER_TAG: newtondotcom/yogocap_worker:latest CLEANS3_TAG: newtondotcom/yogocap_cleans3:latest on: workflow_dispatch: jobs: - worker: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Build and push AMD64 - uses: docker/build-push-action@v4 - with: - context: ./worker - file: ./worker/Dockerfile - push: true - tags: ${{ env.WORKER_TAG }} - platforms: linux/amd64,linux/arm64/v8 cleans3: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/worker.yml b/.github/workflows/worker.yml new file mode 100644 index 0000000..3121e7b --- /dev/null +++ b/.github/workflows/worker.yml @@ -0,0 +1,29 @@ +--- + name: Image of the worker + env: + WORKER_TAG: newtondotcom/yogocap_worker:latest + on: + workflow_dispatch: + + jobs: + worker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push AMD64 + uses: docker/build-push-action@v4 + with: + context: ./worker + file: ./worker/Dockerfile + push: true + tags: ${{ env.WORKER_TAG }} + platforms: linux/amd64,linux/arm64/v8 + \ No newline at end of file