Skip to content

chore: update angular #137

chore: update angular

chore: update angular #137

Workflow file for this run

name: Docker Build main
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: docker login
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: docker build
run: |
docker build --build-arg ANGULAR_ENV=test -t pledarigrond/pledari-grond-frontend:latest-test -t pledarigrond/pledari-grond-frontend:${{ steps.package-version.outputs.current-version}}-test .
- name: docker push
run: |
docker push pledarigrond/pledari-grond-frontend --all-tags
build_prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: docker login
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: docker build
run: |
docker build --build-arg ANGULAR_ENV=production -t pledarigrond/pledari-grond-frontend:latest-prod -t pledarigrond/pledari-grond-frontend:${{ steps.package-version.outputs.current-version}}-prod .
- name: docker push
run: |
docker push pledarigrond/pledari-grond-frontend --all-tags