database url secret / env variable for ci/cd
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 3m44s
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 3m44s
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -53,6 +53,8 @@ jobs:
|
||||
context: .
|
||||
push: ${{ !github.event.pull_request.head.repo.fork }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
build-args: |
|
||||
API_URL=DATABASE_URL=${{ secrets.DATABASE_URL }}
|
||||
- name: Build and Push Latest Docker Image
|
||||
id: build-and-push-latest
|
||||
uses: docker/build-push-action@v4
|
||||
@@ -61,3 +63,5 @@ jobs:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:latest
|
||||
build-args: |
|
||||
DATABASE_URL=${{ secrets.DATABASE_URL }}
|
||||
|
||||
Reference in New Issue
Block a user