Skip to content

feat: update github action #4

feat: update github action

feat: update github action #4

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.GITHUB_TOKEN }}
- 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