diff --git a/.github/workflows/api.yaml b/.github/workflows/api.yaml index c13136e..b76b2ed 100644 --- a/.github/workflows/api.yaml +++ b/.github/workflows/api.yaml @@ -1,4 +1,4 @@ -name: Docker +name: API on: push: diff --git a/.github/workflows/client.yaml b/.github/workflows/client.yaml index e69de29..7216f0c 100644 --- a/.github/workflows/client.yaml +++ b/.github/workflows/client.yaml @@ -0,0 +1,34 @@ +name: Client + +on: + push: + branches: + - main + workflow_dispatch: {} + +jobs: + push: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Docker Login + uses: docker/login-action@v2.1.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v4.0.0 + with: + file: client/Dockerfile + context: client + push: true + tags: ghcr.io/djoamersfoort/notifications/api:latest + build-args: | + oauth_server = ${OAUTH_SERVER} + client_id = ${CLIENT_ID} + api_base = ${API_BASE} + redirect_url = ${REDIRECT_URL} diff --git a/.gitignore b/.gitignore index 9691293..7610632 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ api/data */venv api/database.db */.idea +.idea */.env