Skip to content

Commit

Permalink
refactor(ci): revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 committed Aug 24, 2021
1 parent 52b4d72 commit 8d576ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/deploy-web-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
- "packages/flat-components/src/**"
- "packages/flat-i18n/locales/**"
- "packages/flat-types/src/**"
pull_request:
branches:
- main

jobs:
deploy-flat-web-dev:
Expand All @@ -30,11 +27,11 @@ jobs:
- name: Build flat web development
run: yarn workspace flat-web build -m development

# - name: Log in to Docker Hub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Reset dockerignore
run: |
Expand All @@ -50,5 +47,5 @@ jobs:
cat .dockerignore
ls -a web/flat-web/deploy/nginx
docker build . -f web/flat-web/deploy/Dockerfile -t agoraflat/flat-web:$COMMIT_SHA_TAG -t agoraflat/flat-web:$LATEST_DEV_TAG
# docker push agoraflat/flat-web:$COMMIT_SHA_TAG
# docker push agoraflat/flat-web:$LATEST_DEV_TAG
docker push agoraflat/flat-web:$COMMIT_SHA_TAG
docker push agoraflat/flat-web:$LATEST_DEV_TAG
4 changes: 2 additions & 2 deletions .github/workflows/deploy-web-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
- name: Reset dockerignore
run: |
echo "*" > .dockerignore
echo "\!web/flat-web/dist" >> .dockerignore
echo "\!web/flat-web/deploy/nginx" >> .dockerignore
echo "!web/flat-web/dist" >> .dockerignore
echo "!web/flat-web/deploy/nginx" >> .dockerignore
- name: Build and push images production
env:
Expand Down

0 comments on commit 8d576ef

Please sign in to comment.