diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index a55fb2f..62e6c64 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -23,12 +23,11 @@ jobs: working-directory: ./backend run: cargo run --release -- --help - name: Build and Push template image - working-directory: ./backend uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - dockerfile: Dockerfile + dockerfile: ./backend/Dockerfile repository: parity/substrate-telemetry-backend push: ${{ startsWith(github.ref, 'refs/tags/') }} tags: latest diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index ad9fdd4..179fdb6 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -37,12 +37,11 @@ jobs: working-directory: ./frontend run: yarn build - name: Build and Push template image - working-directory: ./frontend uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - dockerfile: Dockerfile + dockerfile: ./frontend/Dockerfile repository: parity/substrate-telemetry-frontend push: ${{ startsWith(github.ref, 'refs/tags/') }} tags: latest diff --git a/frontend/Dockerfile b/frontend/Dockerfile index d5bc187..6b1946e 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -10,6 +10,7 @@ RUN yarn install && \ yarn build && \ yarn cache clean + #### OUTPUT IMAGE #### FROM nginx:stable-alpine LABEL maintainer="Chevdor "