Files
wedding-site/.gitea/workflows/ci.yml
Workflow config file is invalid. Please check your config file: yaml: line 13: could not find expected ':'

21 lines
537 B
YAML

name: Build Docker
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Docker CLI
run: |
apt-get update
apt-get install -y docker.io
- uses: actions/checkout@v4
- name: Create .env file
run: |
echo "${{ secrets.ENV_FILE }}" > .env
- name: Build image
run: docker build -t back:latest -f docker/dockerfile .
- name: Start docker-compose
run: docker-compose -f docker/docker-compose.yaml up -d