Skip to content

Commit

Permalink
wip: add update docker image github action
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarpovich committed Aug 21, 2022
1 parent 788fd19 commit 251abb8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-rocks-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'playlist-synchronizer': patch
---

Add update docker image github action
19 changes: 19 additions & 0 deletions .github/workflows/update-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Update docker image'

on:
registry_package:
types: [published]

jobs:
deploy:
name: Update docker image
runs-on: ubuntu-latest
steps:
- name: multiple command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
cd ./playlist-synchronizer && docker compose pull playlist-synchronizer && docker compose up -d playlist-synchronizer
16 changes: 0 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,5 @@ services:
depends_on:
- playlist-synchronizer

updater:
image: ghcr.io/umputun/updater:v0.2.0
container_name: updater
hostname: updater
restart: unless-stopped
environment:
LISTEN: 0.0.0.0:${UPDATER_PORT}
KEY: ${UPDATER_KEY}
CONF: '/srv/etc/updater.yml'
ports:
- ${UPDATER_PORT}:${UPDATER_PORT}
volumes:
- ./updater.yml:/srv/etc/updater.yml:ro
- ${UPDATER_SSH_KEY_PATH}:/home/app/.ssh/id_rsa
- /var/run/docker.sock:/var/run/docker.sock

volumes:
auth-store:
6 changes: 0 additions & 6 deletions updater.yml

This file was deleted.

0 comments on commit 251abb8

Please sign in to comment.