forked from cms-tedd-ip2i/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 816 Bytes
/
Copy pathstart-stack.yml
File metadata and controls
37 lines (33 loc) · 816 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
32
33
34
35
36
37
name: Docker-Stack
on:
push:
branches: [dev,main]
tags:
- 'v*'
pull_request:
branches:
- 'main'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# IMAGE_NAME_DUMMY: dummy
# IMAGE_NAME_LOW_VOLTAGE: low_voltage
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Login to ghcr
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker compose start mqtt and stack
run: |
echo "TRACKER_DCS_INFLUXDB_TOKEN=foobar" > my.env
docker compose up -d
docker compose ps