Saltar al contenido
mypipelines
Pipelines Actions Gradle Buscar
Java (Spring Boot)· Consumer template ·on: push

Java Release Deploy

Template: Deploy on release branch Copy to: .github/workflows/release-deploy.yml Triggers on push to release/* branches Runs: build + test + artifact + deploy (STAGING environment) Required secrets: S

templates/java-release-deploy.yml

templates/java-release-deploy.yml
# Template: Deploy on release branch
# Copy to: .github/workflows/release-deploy.yml
#
# Triggers on push to release/* branches
# Runs: build + test + artifact + deploy (STAGING environment)
#
# Required secrets: Same as develop-deploy.yml
name: Deploy to Staging
on:
push:
branches:
- 'release/**'
permissions:
contents: read
id-token: write
jobs:
pipeline:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
uses: <org>/ci-templates/.github/workflows/java-main-pipeline.yml@main
with:
run_build: true
run_test: true
run_artifact: true
artifact_registry: 'ecr'
run_deploy: true
deploy_target: 'ec2-vpn'
environment: 'staging'
spring_profiles: 'staging'
# Mount TLS material/keystore from host into the container (read-only).
# Place files at /opt/docker/<repo>/certs/ on the EC2 host before deploy.
# Pair with container_env_vars (set in the pipeline) to point Spring Boot at them.
# extra_volumes: |
# - ./certs:/etc/ssl/app:ro
secrets: inherit