From 73c796d38cfb09bf005f87487086ed891817a519 Mon Sep 17 00:00:00 2001 From: Benedikt Haas Date: Mon, 13 May 2024 11:15:08 +0200 Subject: [PATCH] test env deploy action --- .github/actions/deploy-environment/action.yml | 8 ++++---- .github/workflows/testing.yml | 8 +++++++- temp-composefile.yml | 9 +++++++++ 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 temp-composefile.yml diff --git a/.github/actions/deploy-environment/action.yml b/.github/actions/deploy-environment/action.yml index 90e8965..e6e584d 100644 --- a/.github/actions/deploy-environment/action.yml +++ b/.github/actions/deploy-environment/action.yml @@ -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: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 25dbe60..ecc0ff9 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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 diff --git a/temp-composefile.yml b/temp-composefile.yml new file mode 100644 index 0000000..bb585c1 --- /dev/null +++ b/temp-composefile.yml @@ -0,0 +1,9 @@ +name: tempcompose +services: + a: + image: otherimage + environment: + - joe=mama + + b: + image: myimg