Skip to content

ci: hotfix, create dot_env with GitHub secret #11

ci: hotfix, create dot_env with GitHub secret

ci: hotfix, create dot_env with GitHub secret #11

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Create env file'
run: echo "${{ secrets.DOT_ENV }}" > .env
- name: Build the Docker image
run: docker build . --file docker/Dockerfile --tag tmp:$(date +%s) --build-arg USER_NAME=geng --build-arg PROJECT_NAME=gcd --secret id=dot_env,src=docker/.env