This commit is contained in:
Chu Văn Hải committed 2025-12-08 13:23:24 +07:00
1 parent 0aeeaafca0
commit bef98136c2
1 file changed
+6 -6
+6 -6
View File
@@ -82,7 +82,7 @@ jobs:
# JOB 1: PREPARE - AUTO-DETECT FRAMEWORK AND SETTINGS
# ============================================================================
prepare:
runs-on: alpine-latest
runs-on: ubuntu-22.04
outputs:
node_version: ${{ steps.detect.outputs.NODE_VERSION }}
framework: ${{ steps.detect.outputs.FRAMEWORK }}
@@ -144,7 +144,7 @@ jobs:
# JOB 2: GENERATE DOCKERFILE
# ============================================================================
generate-dockerfile:
runs-on: alpine-latest
runs-on: ubuntu-22.04
needs: prepare
outputs:
dockerfile_path: steps.generate.outputs.dockerfile_path
@@ -152,7 +152,7 @@ jobs:
- name: Checkout Ansible Repo for templates
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/ansible-gitea
repository: devops/ansible-gitea
path: .ansible
- name: Generate Dockerfile
@@ -170,7 +170,7 @@ jobs:
# JOB 3: BUILD AND PUSH DOCKER IMAGE
# ============================================================================
build:
runs-on: alpine-latest
runs-on: ubuntu-22.04
needs: [prepare, generate-dockerfile]
# Grant permissions for the workflow to request an OIDC token.
permissions:
@@ -228,7 +228,7 @@ jobs:
# JOB 4: DEPLOY WITH ANSIBLE
# ============================================================================
deploy:
runs-on: alpine-latest
runs-on: ubuntu-22.04
needs: [prepare, build] # This job runs only after 'prepare' and 'build' jobs succeed.
steps:
- name: Checkout Application Code
@@ -238,7 +238,7 @@ jobs:
uses: actions/checkout@v4
with:
# This should be the path to your ansible-gitea repository
repository: ${{ github.repository_owner }}/ansible-gitea
repository: devops/ansible-gitea
path: .ansible
- name: Set up Ansible and Dependencies