Skip to content

chore(deps): update npm angular packages (#516) #335

chore(deps): update npm angular packages (#516)

chore(deps): update npm angular packages (#516) #335

Workflow file for this run

name: CD Docker
on:
push:
branches:
- 'main'
tags:
- 'v*.*.*'
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile:
- name: armonik_admin_app
file: app.Dockerfile
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
fetch-depth: 0
- run: npm install -g pnpm @antfu/ni
- name: Setup Node
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: '18'
cache: 'pnpm'
- name: Install dependencies
run: nci
- name: Docker meta
id: meta
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175 # v4
with:
# list of Docker images to use as base name for tags
images: |
dockerhubaneo/${{ matrix.dockerfile.name }}
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: ${{ matrix.dockerfile.file }}