Skip to content

Commit

Permalink
test the CI - separate each steps for mor visibility on the builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlavv committed Nov 15, 2024
1 parent eeb9b10 commit 7b0786e
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
CHART_PATH: ./opensource

jobs:
setup-docker:
build-and-push-docker-api:
runs-on: ubuntu-latest

steps:
Expand All @@ -28,26 +28,12 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

build-and-push-docker-api:
runs-on: ubuntu-latest
needs: setup-docker

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true

- name: Build and push Docker image API
run: |
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:latest ./src/api
build-and-push-docker-job:
runs-on: ubuntu-latest
needs: setup-docker

steps:
- name: Checkout repository
Expand All @@ -58,6 +44,12 @@ jobs:
with:
install: true

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image Job
run: |
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${{ env.IMAGE_NAME }}:job-latest ./src
Expand Down

0 comments on commit 7b0786e

Please sign in to comment.