fix: checkout before install node
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user