Skip to content

Commit

Permalink
fix: CI pipeline for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
letehaha committed Jul 16, 2023
1 parent cdf52ad commit 401cc83
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/image-to-docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,34 @@ name: Docker Image CI
on:
push:
branches: [ main ]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
environment: production

steps:
- name: Check Out Repo
uses: actions/checkout@v2

- name: Make envfile
uses: SpicyPizza/create-envfile@v1
with:
envkey_APPLICATION_HOST: ${{ secrets.APPLICATION_HOST }}
envkey_APPLICATION_PORT: ${{ secrets.APPLICATION_PORT }}
envkey_APPLICATION_JWT_SECRET: ${{ secrets.APPLICATION_JWT_SECRET }}
envkey_APPLICATION_DB_HOST: ${{ secrets.APPLICATION_DB_HOST }}
envkey_APPLICATION_DB_USERNAME: ${{ secrets.APPLICATION_DB_USERNAME }}
envkey_APPLICATION_DB_PASSWORD: ${{ secrets.APPLICATION_DB_PASSWORD }}
envkey_APPLICATION_DB_DATABASE: ${{ secrets.APPLICATION_DB_DATABASE }}
envkey_APPLICATION_DB_PORT: ${{ secrets.APPLICATION_DB_PORT }}
envkey_APPLICATION_DB_DIALECT: ${{ secrets.APPLICATION_DB_DIALECT }}
envkey_APPLICATION_REDIS_HOST: ${{ secrets.APPLICATION_REDIS_HOST }}
directory: ./
file_name: .env.production

- id: docker-build
uses: ./.github/actions/docker-build
with:
Expand Down

0 comments on commit 401cc83

Please sign in to comment.