From 93a8b89f60cdefbab31d244cca44e23e9395b175 Mon Sep 17 00:00:00 2001 From: Ricardo Mancinas Date: Sat, 11 Jul 2026 21:12:55 -0700 Subject: [PATCH] fix: checkout before install node --- .gitea/workflows/deploy.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b7ddce2..5b13314 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,11 +7,11 @@ on: - "**" - "Dockerfile" - "docker-compose.yml" + - ".gitea/workflows/**" workflow_dispatch: env: REGISTRY: git.mancinas.io - REPO_NAME: ascii-art-app jobs: build: @@ -24,7 +24,11 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Node.js for actions + run: apk add --no-cache nodejs npm - uses: docker/setup-buildx-action@v3 - uses: docker/login-action@v3 with: @@ -34,7 +38,7 @@ jobs: - id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.REPO_NAME }} + images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/ascii-art-app tags: | type=ref,event=branch type=raw,value=latest,enable={{is_default_branch}} @@ -67,5 +71,5 @@ jobs: endpoint_id: ${{ secrets.PORTAINER_ENDPOINT_ID }} env_data: | { - "IMAGE": "${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.REPO_NAME }}:latest" + "IMAGE": "${{ env.REGISTRY }}/${{ github.repository_owner }}/ascii-art-app:latest" }