Skip to content

Commit

Permalink
test env deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Haas committed May 13, 2024
1 parent 6ea6f81 commit 73c796d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/actions/deploy-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ runs:
run: ${GITHUB_ACTION_PATH}/scripts/render-composefile.sh ${{ inputs.remote-composefile }} ${{ inputs.composefile-path }}
env:
RENDERCOMPOSE_OUTFILE: ${{ inputs.composefile-path }}
- name: Deploy services
id: deploy-services
shell: bash
run: docker compose -f ${{ inputs.remote-composefile }} up
# - name: Deploy services
# id: deploy-services
# shell: bash
# run: docker compose -f ${{ inputs.remote-composefile }} up
- name: Upload rendered Composefile
uses: actions/upload-artifact@v4
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/deploy-environment
with:
composefile-path: temp-composefile.yml
remote-repository: BenediktHaas96/testing
remote-deploytoken: ${{ secrets.SSH_WRONGKEY }}
remote-deploytoken: ${{ secrets.SSH_PRIVKEY }}
remote-composefile: "myfolder/myfile.yml"
- uses: actions/download-artifact@v4
with:
name: rendered-composefile
- shell: bash
run: cat temp-composefile.yml
9 changes: 9 additions & 0 deletions temp-composefile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: tempcompose
services:
a:
image: otherimage
environment:
- joe=mama

b:
image: myimg

0 comments on commit 73c796d

Please sign in to comment.