Skip to content

Bump postcss from 8.4.21 to 8.4.31 in /src (#163) #109

Bump postcss from 8.4.21 to 8.4.31 in /src (#163)

Bump postcss from 8.4.21 to 8.4.31 in /src (#163) #109

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
paths:
- "src/**"
jobs:
build:
defaults:
run:
working-directory: ./src
env:
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
NEXT_PUBLIC_API_BASE_URL: ${{ secrets.NEXT_PUBLIC_API_BASE_URL }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Docker Login
uses: docker/login-action@v2
with:
registry: registry.antosubash.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build the abpreact nextjs image
run: docker build . --file ./apps/abp/Dockerfile --tag abpreactnextjs:dev
- name: Docker tag next image
run: docker tag abpreactnextjs:dev registry.antosubash.com/abpreactnextjs:dev
- name: Push abpreact-nextjs image
run: docker push registry.antosubash.com/abpreactnextjs:dev
- name: Send Http Post Request to Deploy NextJs App
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.NEXTJS_WEBHOOK_URL }}
method: 'POST'