From d135f211ffc59b4a5cfb8a515c3f62402b1fd7dd Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 1 Dec 2022 19:14:13 -0800 Subject: [PATCH] Remove cd job, add edge tagging to docker image --- 5etools-docker/.github/workflows/ci_cd.yml | 29 +++------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/5etools-docker/.github/workflows/ci_cd.yml b/5etools-docker/.github/workflows/ci_cd.yml index aea3cc7d..83283d1f 100644 --- a/5etools-docker/.github/workflows/ci_cd.yml +++ b/5etools-docker/.github/workflows/ci_cd.yml @@ -36,7 +36,9 @@ jobs: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: jafner/5etools-docker - tags: latest + tags: | + latest + type=edge - name: Set up QEMU uses: docker/setup-qemu-action@master @@ -63,28 +65,3 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} repository: jafner/5etools-docker - cd: - #if: ${{ false }} # disable for now - name: Deploy new image to server - needs: ci - runs-on: ubuntu-latest - steps: - - name: Updating and restarting service on host via SSH - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.SITE_HOST }} - username: ${{ secrets.SITE_USERNAME }} - key: ${{ secrets.SITE_KEY }} - port: ${{ secrets.SITE_PORT }} - script: | - cd /root/homelab/jafner-tools/config/5etools - docker pull jafner/5etools-docker:latest - docker-compose down - docker-compose up -d - - - name: Sending Discord notification - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} - uses: Ilshidur/action-discord@master - with: - args: 'The project {{ EVENT_PAYLOAD.repository.full_name }} has been deployed to ${{ secrets.SITE_HOST }}.'