Merge pull request #67 from gal/gal-patch-1 #60
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: Build API | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
# Builds docker images and pushes them to GHCR | |
- | |
name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.USER }} | |
password: ${{ secrets.TOKEN }} | |
- | |
name: Build and push | |
uses: docker/[email protected] | |
with: | |
context: ./api | |
push: true | |
tags: ghcr.io/gal/cs3500-api:latest |