Skip to content

Merge branch 'main' of https://github.com/inthepocket/Elia-Hackathon-… #9

Merge branch 'main' of https://github.com/inthepocket/Elia-Hackathon-…

Merge branch 'main' of https://github.com/inthepocket/Elia-Hackathon-… #9

name: Docker Compose CI
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT_SECRET }}
- name: Create .env file
run: echo "${{ secrets.ENV_FILE }}" > ./golang/.env
- name: Build and push with Docker Compose
run: |
docker-compose build
docker-compose push