Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Update develop_server_deployer.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dojinyou authored May 1, 2024
1 parent 6fdff67 commit b477653
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/develop_server_deployer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ jobs:
if: github.event_name == 'workflow_run'
run: echo "version=${{ steps.triggered_workflow_run.outputs.version }}" >> $GITHUB_OUTPUT

- name: Set deployed image version
id: set_version
run: |
if [[ "${{ github.event_name }}" == "workflow_run" ]]; then
echo "version=${{ steps.triggered_workflow_run.outputs.version }}" >> $GITHUB_OUTPUT
else
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
fi
- name: Send discord notification (develop server deploy start)
uses: appleboy/discord-action@master
with:
Expand All @@ -64,7 +73,7 @@ jobs:
>
> 🛢️ Repository : ${{ github.repository }}
> 🎋 Branch : ${{ github.ref }}
> 📐 Version : ${{ steps.triggered_workflow_run.outputs.version || github.event.inputs.version }}
> 📐 Version : ${{ steps.set_version.outputs.version }}
> 🔁 Run Attempt : ${{ github.run_attempt }}
> 🤗 Actor : ${{ github.triggering_actor }}
Expand Down Expand Up @@ -116,10 +125,6 @@ jobs:
jq -s '.[0] * .[1]' <(echo "$VARS_CONTEXT") <(echo "$SECRETS_CONTEXT") \
| jq -r 'to_entries | map("\(.key)=\(.value)") | .[]' > .env
- name: Set deployed image version
id: set_version
run: echo "version=${{ steps.triggered_workflow_run.outputs.version || github.event.inputs.version }}" >> $GITHUB_OUTPUT

- name: Run Docker Compose up
id: deploy
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit b477653

Please sign in to comment.