-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop ignoring .yml files in prettier and fix existing issues.
- Loading branch information
Showing
5 changed files
with
47 additions
and
51 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
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 |
---|---|---|
|
@@ -4,9 +4,9 @@ name: build-run | |
on: | ||
# Triggers the workflow on push or pull request events but only for the main branch | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [master] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
|
@@ -29,16 +29,16 @@ jobs: | |
# lts/gallium node v19.7.0 (npm v9.5.0) | ||
node-version: '19.7.0' | ||
- name: Angular CLI install | ||
run : npm install -g --silent @angular/[email protected] | ||
run: npm install -g --silent @angular/[email protected] | ||
|
||
- name: Npm install | ||
run: npm install | ||
|
||
- name: Run eslint | ||
run : npx ng lint | ||
run: npx ng lint | ||
|
||
- name: Run build | ||
run : npm run build:prod | ||
run: npm run build:prod | ||
|
||
- name: Deploy to github pages | ||
if: ${{ github.event_name == 'push' }} | ||
|
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 |
---|---|---|
@@ -1,33 +1,31 @@ | ||
name: Publish Image in Docker Hub | ||
name: Publish Image in Docker Hub | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
DOCKER_ORGANIZATION: ${{secrets.DOCKER_ORGANIZATION}} | ||
WEB_APP_VERSION: ${{secrets.WEB_APP_LATEST_STABLE_VERSION}} | ||
DOCKER_ORGANIZATION: ${{secrets.DOCKER_ORGANIZATION}} | ||
WEB_APP_VERSION: ${{secrets.WEB_APP_LATEST_STABLE_VERSION}} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Docker Hub Login | ||
env: | ||
DOCKER_USER: ${{secrets.DOCKER_USER}} | ||
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | ||
run: | | ||
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin | ||
- name: Docker Hub Login | ||
env: | ||
DOCKER_USER: ${{secrets.DOCKER_USER}} | ||
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | ||
run: | | ||
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin | ||
- name: Build the Docker image | ||
run: docker build -t web-app:latest . | ||
|
||
- name: Build the Docker image | ||
run: docker build -t web-app:latest . | ||
|
||
- name: Docker Hub Prepare | ||
run: docker image tag web-app $DOCKER_ORGANIZATION/web-app:$WEB_APP_VERSION | ||
- name: Docker Hub Prepare | ||
run: docker image tag web-app $DOCKER_ORGANIZATION/web-app:$WEB_APP_VERSION | ||
|
||
- name: Docker Hub Push | ||
run: docker image push $DOCKER_ORGANIZATION/web-app:$WEB_APP_VERSION | ||
- name: Docker Hub Push | ||
run: docker image push $DOCKER_ORGANIZATION/web-app:$WEB_APP_VERSION |
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
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 |
---|---|---|
|
@@ -5,4 +5,3 @@ | |
*.js | ||
*.json | ||
*.ts | ||
*.yml |