diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a5e3acc..68a3aef 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,9 +13,6 @@ jobs: runs-on: ubuntu-latest steps: - # - name: Checkout repository - # uses: actions/checkout@v3 - - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -28,23 +25,23 @@ jobs: - name: Build and push django image uses: docker/build-push-action@v5 with: - context: ./education_platform/ - file: ./education_platform/Dockerfile + context: "{{defaultContext}}:education_platform" + file: "{{defaultContext}}:education_platform/Dockerfile" tags: goldenjaden/edu_django:latest push: true - name: Build and push flask notifications image uses: docker/build-push-action@v5 with: - context: ./notifications/ - file: ./notifications/Dockerfile + context: "{{defaultContext}}:notifications" + file: "{{defaultContext}}:notifications/Dockerfile" tags: goldenjaden/edu_flask_messenger:latest push: true - name: Build and push flask messenger image uses: docker/build-push-action@v5 with: - context: ./messenger/ - file: ./messenger/Dockerfile + context: "{{defaultContext}}:messenger" + file: "{{defaultContext}}:messenger/Dockerfile" tags: goldenjaden/edu_flask_messenger:latest push: true