-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f46fa6
commit db4abc7
Showing
1 changed file
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,6 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Cache node modules | ||
# uses: actions/[email protected] | ||
# with: | ||
# path: node_modules | ||
# key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-node- | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
|
@@ -31,14 +23,16 @@ jobs: | |
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Add Babel plugin | ||
run: yarn add @babel/plugin-proposal-private-property-in-object --dev | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
|
||
- name: Docker build & push to hub | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} | ||
docker build -f Dockerfile.dev -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}:latest . | ||
docker build -f Dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPONAME }}:latest . | ||
docker push ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_PROD_REPONAME }}:latest | ||
cd: | ||
|