Skip to content

feat: add .env files for dev and production #11

feat: add .env files for dev and production

feat: add .env files for dev and production #11

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
jobs:
docker:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/docker/login-action#github-container-registry
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/docker/setup-buildx-action#usage
- uses: docker/setup-buildx-action@v1
# https://github.com/docker/build-push-action#usage
- uses: docker/build-push-action@v2
with:
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max