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 213602f commit 9fc33ea
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ jobs:
runs-on: ubuntu-latest

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

- name: Setup Docker Buildx and Login
uses: ./setup-docker
- name: Setup Docker
uses: ./.github/workflows/setup-docker.yml

- name: Build and push Docker image API
run: |
Expand All @@ -28,11 +25,8 @@ jobs:
runs-on: ubuntu-latest

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

- name: Setup Docker Buildx and Login
uses: ./setup-docker
- name: Setup Docker
uses: ./.github/workflows/setup-docker.yml

- name: Build and push Docker image Job
run: |
Expand All @@ -45,12 +39,12 @@ jobs:
- build-and-push-docker-job

steps:
- name: Setup Docker
uses: ./.github/workflows/setup-docker.yml

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

- name: Setup Docker Buildx and Login
uses: ./setup-docker

- name: Install Helm
uses: azure/setup-helm@v3
with:
Expand Down
37 changes: 22 additions & 15 deletions .github/workflows/setup-docker.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: 'Setup Docker Buildx and Login'
description: 'Setup Docker Buildx and Login to Docker Hub'
runs:
using: 'composite'
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true

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

on: [workflow_call]

jobs:
setup-docker:
runs-on: ubuntu-latest

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

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

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

0 comments on commit 9fc33ea

Please sign in to comment.