Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
add deployment only on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kclejeune committed Sep 4, 2021
1 parent f2d680a commit b53a4c3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,21 @@ jobs:
node-version: 16.x
# Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm
cache: npm
- name: Install and Build
run: npm ci && npm run build
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
- name: Build
id: docker_build
uses: docker/build-push-action@v2
with:
push: false
tags: kclejeune/tmobile-isp-client
- name: Deploy
if: ${{ github.ref == 'refs/heads/master' }}
id: docker_depoy
uses: docker/build-push-action@v2
with:
push: true
tags: kclejeune/tmobile-isp-client

0 comments on commit b53a4c3

Please sign in to comment.