Skip to content

Commit

Permalink
two differents gh actions jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
newtondotcom committed Jan 3, 2024
1 parent 6ea86ef commit f35af07
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/push.yml → .github/workflows/cleans3.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/worker.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f35af07

Please sign in to comment.