Skip to content

add docker container and workflow#682

Draft
azzlack wants to merge 5 commits into
masterfrom
feat/docker
Draft

add docker container and workflow#682
azzlack wants to merge 5 commits into
masterfrom
feat/docker

Conversation

@azzlack

@azzlack azzlack commented May 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread .github/workflows/build-and-deploy.yml Fixed
Comment thread .github/workflows/build-and-deploy.yml Fixed
Comment on lines +39 to +57
name: Read Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Read version from VERSION file
id: version
working-directory: ${{ inputs.folder_name }}
run: |
VERSION=$(cat VERSION)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "## Version" >> $GITHUB_STEP_SUMMARY
echo "$VERSION" >> $GITHUB_STEP_SUMMARY

# Single build (default)
build:
Comment thread .github/workflows/flow_docker.yml Outdated
Comment on lines +58 to +73
name: Build Image
uses: ./.github/workflows/docker_build.yml
if: ${{ !inputs.use_image_per_environment }}
secrets: inherit
needs: version
with:
registry: ${{ inputs.registry }}
image_name: ${{ inputs.image_name }}
folder_name: ${{ inputs.folder_name }}
version: ${{ needs.version.outputs.version }}
run_number: ${{ github.run_number }}
user_name: ${{ github.actor }}
platforms: ${{ inputs.platforms }}

# Per-environment builds
build-dev:
Comment thread .github/workflows/flow_docker.yml Fixed
Comment thread .github/workflows/flow_docker.yml Fixed
Comment thread .github/workflows/flow_docker.yml Fixed
Comment on lines +123 to +142
name: Deploy Development Image
uses: ./.github/workflows/docker_deploy.yml
secrets: inherit
if: ${{ !failure() && !cancelled() && github.ref_name == inputs.deploy_branch }}
needs:
- version
- build
- build-dev
with:
version: ${{ needs.version.outputs.version }}
registry: ${{ inputs.registry }}
image_name: ${{ inputs.image_name }}
build_image: ${{ needs.build.outputs.build_image || needs.build-dev.outputs.build_image }}
build_image_tag: ${{ needs.build-dev.outputs.build_image_tag || needs.build.outputs.build_image_tag }}
deploy_tag: ${{ needs.version.outputs.version }}-dev
platforms: ${{ inputs.platforms }}
environment: development

# Deploy to Staging
deploy-staging:
Comment on lines +143 to +162
name: Deploy Staging Image
uses: ./.github/workflows/docker_deploy.yml
secrets: inherit
if: ${{ !failure() && !cancelled() && github.ref_name == inputs.deploy_branch }}
needs:
- version
- build
- build-staging
with:
version: ${{ needs.version.outputs.version }}
registry: ${{ inputs.registry }}
image_name: ${{ inputs.image_name }}
build_image: ${{ needs.build.outputs.build_image || needs.build-staging.outputs.build_image }}
build_image_tag: ${{ needs.build-staging.outputs.build_image_tag || needs.build.outputs.build_image_tag }}
deploy_tag: ${{ needs.version.outputs.version }}-staging
environment: staging
platforms: ${{ inputs.platforms }}

# Deploy to Production
deploy-prod:
Comment on lines +163 to +179
name: Deploy Production Image
uses: ./.github/workflows/docker_deploy.yml
secrets: inherit
if: ${{ !failure() && !cancelled() && github.ref_name == inputs.deploy_branch }}
needs:
- version
- build
- build-prod
with:
version: ${{ needs.version.outputs.version }}
registry: ${{ inputs.registry }}
image_name: ${{ inputs.image_name }}
build_image: ${{ needs.build.outputs.build_image || needs.build-prod.outputs.build_image }}
build_image_tag: ${{ needs.build-prod.outputs.build_image_tag || needs.build.outputs.build_image_tag }}
deploy_tag: ${{ needs.version.outputs.version }}
environment: production
platforms: ${{ inputs.platforms }}
Comment on lines +11 to +20
name: Highsoft Flow
uses: ./.github/workflows/flow_docker.yml
secrets: inherit
with:
registry: ghcr.io
folder_name: .
image_name: ${{ github.repository }}
use_image_per_environment: false
platforms: linux/amd64
deploy_branch: feat/docker No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants