Remove cd job, add edge tagging to docker image
This commit is contained in:
parent
654f4e18c0
commit
d135f211ff
29
5etools-docker/.github/workflows/ci_cd.yml
vendored
29
5etools-docker/.github/workflows/ci_cd.yml
vendored
@ -36,7 +36,9 @@ jobs:
|
|||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||||
with:
|
with:
|
||||||
images: jafner/5etools-docker
|
images: jafner/5etools-docker
|
||||||
tags: latest
|
tags: |
|
||||||
|
latest
|
||||||
|
type=edge
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@master
|
uses: docker/setup-qemu-action@master
|
||||||
@ -63,28 +65,3 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
repository: jafner/5etools-docker
|
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 }}.'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user