Modify indentation in pipeline config file

This commit is contained in:
Lucian Popescu 2022-04-15 17:58:53 +03:00
parent 5e34a31a33
commit 5b97629c0a
1 changed files with 23 additions and 23 deletions

View File

@ -27,26 +27,26 @@ jobs:
#- run: npm run build --if-present
- run: npm test
docker:
name: Publish backend container - Docker Hub
runs-on: ubuntu-18.04
needs: [test]
strategy:
matrix:
node-version: [16.x]
env:
REPO: ${{ secrets.DOCKER_REPO }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USER }}
-p ${{ secrets.DOCKER_PASS }}
- name: Build Docker image
run: docker build -t $REPO:latest -t $REPO:${GITHUB_SHA::8} .
- name: Publish Docker image
run: docker push $REPO
docker:
name: Publish backend container - Docker Hub
runs-on: ubuntu-18.04
needs: [test]
strategy:
matrix:
node-version: [16.x]
env:
REPO: ${{ secrets.DOCKER_REPO }}
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Login to Docker Hub
run: docker login -u ${{ secrets.DOCKER_USER }}
-p ${{ secrets.DOCKER_PASS }}
- name: Build Docker image
run: docker build -t $REPO:latest -t $REPO:${GITHUB_SHA::8} .
- name: Publish Docker image
run: docker push $REPO