fix: checkout before install node
Build and Deploy / Build Image (push) Failing after 7s
Build and Deploy / Deploy to Portainer (push) Has been skipped

This commit is contained in:
Ricardo Mancinas
2026-07-11 21:12:55 -07:00
parent 61ce054fb1
commit 93a8b89f60
+8 -4
View File
@@ -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"
}