mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
fix(databasemodule): make ssl optional, pass ca cert as base64 env
This commit is contained in:
16
.github/workflows/docker-build-push.yml
vendored
16
.github/workflows/docker-build-push.yml
vendored
@ -13,11 +13,17 @@ jobs:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v3.0.0
|
||||
|
||||
- name: Login to Docker Hub
|
||||
- name: Login to DigitalOcean Container Registry
|
||||
uses: docker/login-action@v1.14.1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: registry.digitalocean.com
|
||||
username: ${{ secrets.DIGITALOCEAN_TOKEN }}
|
||||
password: ${{ secrets.DIGITALOCEAN_TOKEN }}
|
||||
|
||||
- name: Copy Environment Variable Configuration
|
||||
run: echo $ENV_FILE | base64 --decode > .env
|
||||
env:
|
||||
ENV_FILE: ${{ secrets.ENV_FILE }}
|
||||
|
||||
- name: Build and Push Server Docker Image
|
||||
uses: docker/build-push-action@v2.9.0
|
||||
@ -25,7 +31,7 @@ jobs:
|
||||
context: .
|
||||
push: true
|
||||
file: server/Dockerfile
|
||||
tags: amruthpillai/reactive-resume:server-latest
|
||||
tags: registry.digitalocean.com/reactive-resume/server:latest
|
||||
|
||||
- name: Build and Push Client Docker Image
|
||||
uses: docker/build-push-action@v2.9.0
|
||||
@ -33,4 +39,4 @@ jobs:
|
||||
context: .
|
||||
push: true
|
||||
file: client/Dockerfile
|
||||
tags: amruthpillai/reactive-resume:client-latest
|
||||
tags: registry.digitalocean.com/reactive-resume/client:latest
|
||||
|
||||
Reference in New Issue
Block a user