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 7b0786e commit 213602f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
34 changes: 6 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@ jobs:
- 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 }}
- name: Setup Docker Buildx and Login
uses: ./setup-docker

- name: Build and push Docker image API
run: |
Expand All @@ -39,16 +31,8 @@ jobs:
- 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 }}
- name: Setup Docker Buildx and Login
uses: ./setup-docker

- name: Build and push Docker image Job
run: |
Expand All @@ -64,14 +48,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

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

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

- name: Install Helm
uses: azure/setup-helm@v3
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/setup-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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 }}

0 comments on commit 213602f

Please sign in to comment.