Update dependency nuxt to v3.13.2 #2203
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: server-side-rendering-nodejs-container-paketo | |
on: [push] | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | |
BASE_URL: "http://fargatealb-81c02c2-1301929463.eu-central-1.elb.amazonaws.com:8098/api" | |
jobs: | |
server-side-rendering-nodejs-container-paketo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@master | |
- name: Setup node env 🏗 | |
uses: actions/[email protected] | |
with: | |
node-version: '20' | |
- name: Cache node_modules 📦 | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install Nuxt.js dependencies | |
run: npm install | |
- name: Install Pulumi dependencies before npm run generate to prevent it from breaking the build | |
run: npm install | |
working-directory: ./deployment | |
- name: Run tests 🧪 | |
run: npm run test | |
- name: Generate Static Site from Nuxt.js application (nuxt build, see package.json) | |
run: npm run build | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install pack CLI via the official buildpack Action https://github.com/buildpacks/github-actions#setup-pack-cli-action | |
uses: buildpacks/github-actions/[email protected] | |
# Caching Paketo Build see https://stackoverflow.com/a/66598693/4964553 | |
# BP_OCI_SOURCE as --env creates the GitHub Container Registry <-> Repository link (https://paketo.io/docs/buildpacks/configuration/#applying-custom-labels) | |
- name: Build app with pack CLI & publish to bc Container Registry | |
run: | | |
pack build ghcr.io/jonashackt/microservice-ui-nuxt-js:latest \ | |
--builder paketobuildpacks/builder-jammy-base \ | |
--env BP_LAUNCHPOINT=".output/server/index.mjs" \ | |
--path . \ | |
--env "BP_OCI_SOURCE=https://github.com/jonashackt/microservice-ui-nuxt-js" \ | |
--cache-image ghcr.io/jonashackt/microservice-ui-nuxt-js-paketo-cache-image:latest \ | |
--publish |