Skip to content

Commit

Permalink
Clean up some bits of old fitbit-challenges workflow (#134)
Browse files Browse the repository at this point in the history
- **Delete unused parts of old fitbit challenges workflow**
- **Delete API dockerfile, and point frontend to right dir**
  • Loading branch information
shaldengeki authored Jun 13, 2024
1 parent 9cd9cf3 commit bfc38ba
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 80 deletions.
47 changes: 0 additions & 47 deletions fitbit-challenges/.github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,53 +19,6 @@ jobs:
working-directory: ./src/javascript/frontend
- run: npm test
working-directory: ./src/javascript/frontend
test-py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
working-directory: ./src/python
- run: pytest
working-directory: ./src/python
- run: mypy .
working-directory: ./src/python
build-api:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs:
- test-py
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: ./src/python
file: ./src/python/api/Dockerfile
push: true
tags: shaldengeki/fitbit-challenges-api:latest
build-frontend:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
Expand Down
32 changes: 0 additions & 32 deletions src/python/fitbit_challenges/api/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion src/python/fitbit_challenges/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- fitbit-challenges-pg:/var/lib/postgresql/data
frontend:
build:
context: ./src/javascript/frontend
context: ../../javascript/fitbit-challenges/frontend
dockerfile: Dockerfile
image: frontend
env_file:
Expand Down

0 comments on commit bfc38ba

Please sign in to comment.