From 44eada6eb92f96b48070907864b122d265ebed7c Mon Sep 17 00:00:00 2001 From: Martin Pugh Date: Fri, 26 Mar 2021 13:28:12 +0100 Subject: [PATCH] update docker actions to v2 --- .github/workflows/backend.yml | 11 ++++++----- .github/workflows/frontend.yml | 13 +++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index c6f6b41..b1a44e5 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -22,14 +22,15 @@ jobs: - name: Build release and call executable working-directory: ./backend run: cargo run --release -- --help - - name: Build and Push template image - uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action + - name: Login to Dockerhub + uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - path: ./backend/ - dockerfile: ./backend/Dockerfile + - name: Build and Push template image + uses: docker/build-push-action@v2 # https://github.com/docker/build-push-action + context: . repository: parity/substrate-telemetry-backend push: ${{ startsWith(github.ref, 'refs/tags/') }} tags: latest - add_git_labels: true + # add_git_labels: true diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index f5f7040..fb74543 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -36,15 +36,16 @@ jobs: - name: Build working-directory: ./frontend run: yarn build - - name: Build and Push template image - uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action - if: matrix.node-version == '12.x' + - name: Login to Dockerhub + uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - path: ./frontend/ - dockerfile: ./frontend/Dockerfile + - name: Build and Push template image + uses: docker/build-push-action@v2 # https://github.com/docker/build-push-action + if: matrix.node-version == '12.x' + context: ./frontend/ repository: parity/substrate-telemetry-frontend push: ${{ startsWith(github.ref, 'refs/tags/') }} tags: latest - add_git_labels: true + # add_git_labels: true