Skip to content

fix: add deploy runner label for deployments #1

fix: add deploy runner label for deployments

fix: add deploy runner label for deployments #1

name: Deploy docker compose
on:
workflow_call:
inputs:
DEPLOY_ON:
required: true
type: string
RUNNERS_NATIVE_GROUP:
required: false
type: string
default: 'Native'
ENVIRONMENT:
required: true
type: string
DEPLOY_URL:
required: true
type: string
REGISTRY_URL:
required: true
type: string
PROJECT_NAME:
required: true
type: string
DOCKER_COMPOSE_PATH:
required: true
type: string
DOCKER_COMPOSE_EXTRA_ARGS:
required: false
type: string
default: ''
IMAGES:
required: true
type: string
env: "${{secrets}}"
jobs:
deploy:
runs-on:

Check failure on line 40 in .github/workflows/docker-step-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-step-deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 40
labels: [deploy, ${{ inputs.DEPLOY_ON }}]
group: ${{ inputs.RUNNERS_NATIVE_GROUP }}
env: ${{ fromJson(inputs.IMAGES) }}
environment:
name: ${{ inputs.ENVIRONMENT }}
url: ${{ inputs.DEPLOY_URL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ inputs.REGISTRY_URL }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker-compose --project-name ${{ inputs.PROJECT_NAME }} -f ${{ inputs.DOCKER_COMPOSE_PATH }} ${{ inputs.DOCKER_COMPOSE_EXTRA_ARGS }} pull
- run: docker-compose --project-name ${{ inputs.PROJECT_NAME }} -f ${{ inputs.DOCKER_COMPOSE_PATH }} ${{ inputs.DOCKER_COMPOSE_EXTRA_ARGS }} up --build --remove-orphans --force-recreate -d