Skip to content

Commit

Permalink
Merge pull request #405 from manala/elao.app.docker-dir-app
Browse files Browse the repository at this point in the history
[Elao - App -Docker] Allow directory slash in app name
  • Loading branch information
ogizanagi authored Dec 6, 2023
2 parents 7e191ea + 12b58b0 commit 5d0cb19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion elao.app.docker/.manala.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ system:
# "delivery": {"type": "object", "$id": "#delivery",
# "additionalProperties": false,
# "properties": {
# "app": {"type": "string", "pattern": "^[a-z]+$"},
# "app": {"type": "string", "pattern": "^[\/a-z]+$"},
# "tier": {"type": "string", "pattern": "^[\\w-/]+$"},
# "ref": {"type": "string", "pattern": "^[\\w-/]+$"},
# "release_repo": {"type": "string"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ runs:

{{ if hasKey $delivery "github_ssh_key_secret" -}}
- name: Setup SSH Key for {{ $delivery_name }}
id: setup_ssh_key_{{ $delivery_id_suffix }}
if: {{ $delivery_if }}
shell: bash
run: echo "ssh_key_secret={{ $delivery.github_ssh_key_secret }}" >> $GITHUB_OUTPUT
run: echo "MANALA_DELIVERIES_SSH_KEY_SECRET={{ $delivery.github_ssh_key_secret }}" >> $GITHUB_ENV
{{- else -}}
# No SSH key configured for {{ $delivery_name }}
{{- end }}
Expand All @@ -77,8 +76,4 @@ runs:
dir: deliveries/${{ inputs.app && format('{0}/', inputs.app) || '' }}${{ inputs.tier }}
env: ${{ inputs.env }}
ssh_key: >-
${{ fromJSON(inputs.secrets)[steps[format(
'setup_ssh_key_{0}{1}',
inputs.app && format('{0}_', inputs.app) || '',
inputs.tier
)].outputs.ssh_key_secret] }}` }}
${{ fromJSON(inputs.secrets)[env.MANALA_DELIVERIES_SSH_KEY_SECRET] }}` }}

0 comments on commit 5d0cb19

Please sign in to comment.