fix confusion action behavior

This commit is contained in:
Erin Grasmick
2020-07-28 13:24:15 +02:00
parent 2c786a52f2
commit 2da071ae47
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -23,12 +23,11 @@ jobs:
working-directory: ./backend working-directory: ./backend
run: cargo run --release -- --help run: cargo run --release -- --help
- name: Build and Push template image - name: Build and Push template image
working-directory: ./backend
uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile dockerfile: ./backend/Dockerfile
repository: parity/substrate-telemetry-backend repository: parity/substrate-telemetry-backend
push: ${{ startsWith(github.ref, 'refs/tags/') }} push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: latest tags: latest
+1 -2
View File
@@ -37,12 +37,11 @@ jobs:
working-directory: ./frontend working-directory: ./frontend
run: yarn build run: yarn build
- name: Build and Push template image - name: Build and Push template image
working-directory: ./frontend
uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile dockerfile: ./frontend/Dockerfile
repository: parity/substrate-telemetry-frontend repository: parity/substrate-telemetry-frontend
push: ${{ startsWith(github.ref, 'refs/tags/') }} push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: latest tags: latest
+1
View File
@@ -10,6 +10,7 @@ RUN yarn install && \
yarn build && \ yarn build && \
yarn cache clean yarn cache clean
#### OUTPUT IMAGE #### #### OUTPUT IMAGE ####
FROM nginx:stable-alpine FROM nginx:stable-alpine
LABEL maintainer="Chevdor <chevdor@gmail.com>" LABEL maintainer="Chevdor <chevdor@gmail.com>"