Skip to content

Commit

Permalink
fix: Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-castro committed Nov 10, 2024
1 parent df6ac9a commit 7f371c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/build-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ inputs:
service:
description: "Service to build and push"
required: true
dockerhub_username:
description: "Docker Hub username"
required: true
dockerhub_token:
description: "Docker Hub token"
required: true

runs:
using: "composite"
Expand All @@ -23,8 +29,8 @@ runs:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ inputs.dockerhub_username }}
password: ${{ inputs.dockerhub_token }}

- name: Build and push backend image
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-and-push-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ jobs:
with:
environment: "dev"
service: ${{ matrix.service }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/build-and-push-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ jobs:
with:
environment: "prod"
service: ${{ matrix.service }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}

0 comments on commit 7f371c8

Please sign in to comment.