This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.47 KB
/
action.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Publish annotator docker images
on:
# Trigger the workflow on push
# but only for the master branch
push:
branches:
- master
jobs:
push_to_registry:
name: Push annotator docker images to GitHub Packages
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
-
name: copy env
run: cp example.env .env
-
name: Build and push annotator docker
uses: docker/build-push-action@v2
with:
push: true
file: ./Dockerfile
tags: |
ghcr.io/jimmylevell/annotator:latest
-
name: Deploy to Docker swarm
uses: wshihadeh/docker-deployment-action@v2
with:
remote_docker_host: docker@5.9.138.216
ssh_private_key: ${{ secrets.DOCKER_SSH_PRIVATE_KEY }}
ssh_public_key: ${{ secrets.DOCKER_SSH_PUBLIC_KEY }}
deployment_mode: docker-swarm
pull_images_first: 'true'
deploy_path: /home/james/elitr/annotator
copy_stack_file: 'true'
args: elitr