remove flyio #38
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: Api | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "api/**" | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test api | |
working-directory: ./api | |
run: make test | |
build: | |
runs-on: "ubuntu-latest" | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Log in to registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.CONTAINER_USERNAME }} | |
password: ${{ secrets.CONTAINER_PASSWORD }} | |
- name: Build and push container image to registry | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ${{ secrets.REPOSITORY_NAME }}/planning-poker-api:${{ github.sha }},${{ secrets.REPOSITORY_NAME }}/planning-poker-api:latest, | |
context: ./api |