Revert "Bump next-auth from 4.19.2 to 4.20.1 in /src (#159)" #108
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
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' |