-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (36 loc) · 1.16 KB
/
docker-image.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
name: Docker Image CI
on:
push:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push the Docker image
uses: docker/build-push-action@v2
env:
REACT_APP_ISEE_API: https://api-dev.isee4xai.com/api
REACT_APP_ISEE_ONTOAPI: https://api-onto-dev.isee4xai.com/api
with:
push: true
file: Dockerfile.dev
tags: isee4xai/cockpit:dev
build-args: |
REACT_APP_ISEE_API=https://api-dev.isee4xai.com/api
REACT_APP_ISEE_ONTOAPI= https://api-onto-dev.isee4xai.com/api
deploy:
needs: build
runs-on: ubuntu-latest
name: Deploy on dev platform
steps:
- uses: distributhor/workflow-webhook@v2
env:
webhook_url: ${{ secrets.WEBHOOK_URL_DEV }}
webhook_secret: ${{ secrets.WEBHOOK_TOKEN_DEV }}
data: '{"DOCKER_SERVICE":"cockpit"}'
webhook_type: 'json-extended'