Skip to content

Commit

Permalink
Merge pull request #1 from vasgat/staging
Browse files Browse the repository at this point in the history
github workflow and update project to angular 18
  • Loading branch information
vasgat authored Nov 19, 2024
2 parents 68bccf8 + 82c38d2 commit 769e525
Show file tree
Hide file tree
Showing 37 changed files with 14,272 additions and 12,570 deletions.
17 changes: 0 additions & 17 deletions .browserslistrc

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and publish Docker image

on:
push:
branches: [ main, staging ]
paths:
- 'dist/**'

jobs:
build-and-push-image:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata for Docker
id: meta
uses: docker/[email protected]
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value={{sha}}
- name: Build and push Docker image
uses: docker/[email protected]
with:
push: true
file: docker/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ testem.log
# System Files
.DS_Store
Thumbs.db

.angular
31 changes: 19 additions & 12 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"outputPath": "dist/apparel-top100-showcase",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"zone.js",
"@angular/localize/init"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand All @@ -33,8 +36,7 @@
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.scss"
],
"scripts": [
]
"scripts": []
},
"configurations": {
"production": {
Expand All @@ -56,12 +58,13 @@
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
"outputHashing": "all",
"optimization": true,
"sourceMap": false,
"extractLicenses": true
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
Expand All @@ -71,27 +74,29 @@
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"buildTarget": "apparel-top100-showcase:build"
},
"configurations": {
"production": {
"browserTarget": "apparel-top100-showcase:build:production"
"buildTarget": "apparel-top100-showcase:build:production"
},
"development": {
"browserTarget": "apparel-top100-showcase:build:development"
"buildTarget": "apparel-top100-showcase:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "apparel-top100-showcase:build"
"buildTarget": "apparel-top100-showcase:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
Expand All @@ -107,5 +112,7 @@
}
}
},
"defaultProject": "apparel-top100-showcase"
}
"cli": {
"analytics": false
}
}
Loading

0 comments on commit 769e525

Please sign in to comment.