forked from neo4j-labs/neodash
-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (70 loc) · 2.31 KB
/
develop-deployment.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Test/Deploy Develop
on:
push:
branches: [develop]
jobs:
build:
name: Build Docker Image from Develop Branch
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout Develop Branch
uses: actions/checkout@v2
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
# - name: Creating Neo4j Container
# run: |
# chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
# ./scripts/docker-neo4j-initializer/docker-neo4j.sh
# sleep 30s
# chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
# ./scripts/docker-neo4j-initializer/start-movies-db.sh
# - run: yarn install
# - name: Eslint check
# run: yarn run lint
# - name: Run Cypress Tests
# uses: cypress-io/github-action@v4
# with:
# build: yarn run build
# start: yarn run dev
# wait-on: 'http://localhost:3000'
# browser: chrome
- name: Removing Docs Folder
run: rm -rf docs
# - name: 'Azure ACR Login'
# uses: azure/docker-login@v1
# with:
# login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
# username: ${{ secrets.REGISTRY_USERNAME }}
# password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Populate Docker Metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
updatepath.azurecr.io/neodash-mbenz
tags: |
type=ref, event=branch
type=sha
- name: Azure Container Registry Login
uses: docker/login-action@v2
with:
registry: updatepath.azurecr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push to ACR
uses: docker/build-push-action@v4
with:
context: .
push: true
file: ./Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max