-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (28 loc) · 850 Bytes
/
ci.yml
File metadata and controls
31 lines (28 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Docker Image CI
on:
push:
branches: [master,main]
pull_request:
branches: [master,main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and Push the Docker image
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: tinywell/blocklator
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ./docker/Dockerfile
tag_names: true
cache: true
- name: executing remote ssh commands using key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
key: ${{ secrets.REMOTE_SSH_KEY }}
script: |
cd blocklator && ./update.sh