Skip to content

chore(deps): update all non-major dependencies (#309) #170

chore(deps): update all non-major dependencies (#309)

chore(deps): update all non-major dependencies (#309) #170

name: Continuous Delivery
on:
push:
branches:
- main
paths:
- 'src/**'
- 'Dockerfile'
- '.github/workflows/continuous-delivery.yml'
workflow_dispatch:
jobs:
PublishDragonite:
name: Publish dragonite image to container registries
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/[email protected]
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push dragonite Docker image
uses: docker/[email protected]
with:
push: true
context: ./
file: Dockerfile
tags: ghcr.io/favware/dragonite:latest
UpdateOnServer:
name: Update running container on server
runs-on: ubuntu-latest
needs: PublishDragonite
steps:
- name: Update container on server
uses: favware/ssh-remote-action@v1
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}
username: ${{ secrets.SSH_USERNAME }}
command: ${{ secrets.SSH_COMMAND }}
silent: true