fix: checkout before install node
This commit is contained in:
@@ -7,11 +7,11 @@ on:
|
|||||||
- "**"
|
- "**"
|
||||||
- "Dockerfile"
|
- "Dockerfile"
|
||||||
- "docker-compose.yml"
|
- "docker-compose.yml"
|
||||||
|
- ".gitea/workflows/**"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.mancinas.io
|
REGISTRY: git.mancinas.io
|
||||||
REPO_NAME: ascii-art-app
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -24,7 +24,11 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
steps:
|
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/setup-buildx-action@v3
|
||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -34,7 +38,7 @@ jobs:
|
|||||||
- id: meta
|
- id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.REPO_NAME }}
|
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/ascii-art-app
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
@@ -67,5 +71,5 @@ jobs:
|
|||||||
endpoint_id: ${{ secrets.PORTAINER_ENDPOINT_ID }}
|
endpoint_id: ${{ secrets.PORTAINER_ENDPOINT_ID }}
|
||||||
env_data: |
|
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