Skip to content

Commit

Permalink
fix: fix deploy pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-morandi-zupit committed Apr 23, 2024
1 parent b8cb937 commit 6828f40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/docker/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
required: false
type: string
default: ''
GITHUB_TOKEN:
required: true
type: string

runs:
using: composite
Expand All @@ -24,7 +27,7 @@ runs:
with:
registry: ${{ inputs.REGISTRY_URL }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ inputs.GITHUB_TOKEN }}
- name: Pull docker images
shell: 'bash'
run: docker-compose --project-name ${{ inputs.PROJECT_NAME }} -f ${{ inputs.DOCKER_COMPOSE_PATH }} ${{ inputs.DOCKER_COMPOSE_EXTRA_ARGS }} pull
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-step-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
PROJECT_NAME: ${{ inputs.PROJECT_NAME }}
DOCKER_COMPOSE_PATH: ${{ inputs.DOCKER_COMPOSE_PATH }}
DOCKER_COMPOSE_EXTRA_ARGS: ${{ inputs.DOCKER_COMPOSE_EXTRA_ARGS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

deploy-without-runner-group:
if: ${{ inputs.RUNNERS_CONTAINER_GROUP == '' }}
Expand All @@ -88,3 +89,4 @@ jobs:
PROJECT_NAME: ${{ inputs.PROJECT_NAME }}
DOCKER_COMPOSE_PATH: ${{ inputs.DOCKER_COMPOSE_PATH }}
DOCKER_COMPOSE_EXTRA_ARGS: ${{ inputs.DOCKER_COMPOSE_EXTRA_ARGS }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6828f40

Please sign in to comment.