update actions node 24

This commit is contained in:
2026-04-15 14:24:39 -06:00
parent 362da2fc06
commit 0bfd709f1f

View File

@@ -6,6 +6,7 @@ on:
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs: jobs:
build-and-deploy: build-and-deploy:
@@ -17,7 +18,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4.2.2
- name: Set image names (lowercase) - name: Set image names (lowercase)
run: | run: |
@@ -26,21 +27,21 @@ jobs:
echo "FRONTEND_IMAGE=ghcr.io/${OWNER}/petshop-web" >> $GITHUB_ENV echo "FRONTEND_IMAGE=ghcr.io/${OWNER}/petshop-web" >> $GITHUB_ENV
- name: Log in to GitHub Container Registry - name: Log in to GitHub Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3.3.0
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push backend image - name: Build and push backend image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: ./backend context: ./backend
push: true push: true
tags: ${{ env.BACKEND_IMAGE }}:latest tags: ${{ env.BACKEND_IMAGE }}:latest
- name: Build and push frontend image - name: Build and push frontend image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: ./web context: ./web
push: true push: true
@@ -49,7 +50,7 @@ jobs:
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${{ secrets.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY }} NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${{ secrets.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY }}
- name: Log in to Azure - name: Log in to Azure
uses: azure/login@v1 uses: azure/login@v2
with: with:
client-id: ${{ secrets.AZURE_CLIENT_ID }} client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }}