forked from biosimulators/bio-check
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (56 loc) · 2.41 KB
/
pipeline.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
name: Deployment Pipeline
on:
workflow_dispatch:
jobs:
deploy-base:
runs-on: ubuntu-latest
environment: pipeline-env
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Log in to GHCR
run: echo "${{ secrets.REPO_ADMIN_GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.REPO_ADMIN_GH_USERNAME }}" --password-stdin
- name: Create gcloud config
run: |
echo "$BIOSIMULATIONS_GCLOUD_CONFIG" > ./assets/docker/config/.biosimulations.json
env:
BIOSIMULATIONS_GCLOUD_CONFIG: ${{ secrets.BIO_JSON_CONTENT }}
# - name: Deploy Base image
# run: |
# BASE_VERSION=$(cat ./assets/docker/.BASE_VERSION)
# BASE_IMG="${{ vars.IMG_ROOT }}-base:$BASE_VERSION-dev"
# docker build --no-cache -f ./Dockerfile -t $BASE_IMG .
# docker push $BASE_IMG
- name: Deploy Base image
run: |
BASE_VERSION=$(cat ./assets/docker/.BASE_VERSION)
BASE_IMG="${{ vars.IMG_ROOT }}-base:$BASE_VERSION-dev"
echo "BASE_IMG=$BASE_IMG"
# deploy-gateway:
# needs: deploy-base
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Log in to GHCR
# run: echo "${{ secrets.REPO_ADMIN_GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.REPO_ADMIN_GH_USERNAME }}" --password-stdin
# - name: Build gateway service
# run: |
# GATEWAY_VERSION=$(python -B .github/parse_container_version.py gateway)
# GATEWAY_IMG="${{ needs.get-image-root.outputs.IMG_ROOT }}-gateway:$GATEWAY_VERSION-dev"
# docker build --no-cache -f ./gateway/Dockerfile-gateway -t $GATEWAY_IMG .
# docker push $GATEWAY_IMG
# deploy-worker:
# needs: deploy-gateway
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Log in to GHCR
# run: echo "${{ secrets.REPO_ADMIN_GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.REPO_ADMIN_GH_USERNAME }}" --password-stdin
# - name: Build worker service
# run: |
# WORKER_VERSION=$(python -B .github/parse_container_version.py worker)
# WORKER_IMG="${{ needs.get-image-root.outputs.IMG_ROOT }}-worker:$WORKER_VERSION-dev"
# docker build --no-cache -f ./worker/Dockerfile-worker -t $WORKER_IMG .
# docker push $WORKER_IMG