Merge branch 'main' of https://github.com/inthepocket/Elia-Hackathon-… #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |