Skip to content

Commit

Permalink
Test build conrainer workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ppawlowski committed Sep 4, 2024
1 parent 6875ef6 commit 4863a39
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/flowforge-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,43 +29,46 @@ concurrency:
jobs:
build:
name: Build single-architecture container images
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@v0.28.0
uses: flowfuse/github-actions-workflows/.github/workflows/build_container_image.yml@feat-refactor-image-build
with:
image_name: 'forge-k8s'
package_dependencies: |
@flowfuse/flowfuse
@flowfuse/driver-kubernetes
build_context: 'flowforge-container'
build_platforms: '["linux/amd64"]'
# build_platforms: '["linux/amd64"]'
build_platform: "linux/amd64"
npm_registry_url: ${{ vars.PUBLIC_NPM_REGISTRY_URL }}
scan_image: true
secrets:
npm_registry_auth_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}

build-multi-architecture:
name: Build multi-architecture container image
needs: build
uses: flowfuse/github-actions-workflows/.github/workflows/[email protected]
with:
image_name: 'forge-k8s'
architecture_suffixes: |
-linux-amd64
secrets:
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}
# build-multi-architecture:
# name: Build multi-architecture container image
# needs: build
# uses: flowfuse/github-actions-workflows/.github/workflows/[email protected]
# with:
# image_name: 'forge-k8s'
# architecture_suffixes: |
# -linux-amd64
# secrets:
# temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}

upload-stage-image:
if: github.ref_name == 'main'
# if: github.ref_name == 'main'
name: Upload image to staging registry
needs: build-multi-architecture
needs: build
# needs: build-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/[email protected]
with:
environment: stage
service_name: 'forge-k8s'
deployment_name: flowforge
container_name: forge
deploy: false
image: ${{ needs.build-multi-architecture.outputs.image }}
# image: ${{ needs.build-multi-architecture.outputs.image }}
image: ${{ needs.build.outputs.image }}
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
Expand All @@ -75,7 +78,8 @@ jobs:
upload-production-image:
if: github.ref_name == 'main'
name: Upload image to production registry
needs: build-multi-architecture
# needs: build-multi-architecture
needs: build
uses: flowfuse/github-actions-workflows/.github/workflows/[email protected]
with:
environment: production
Expand Down

0 comments on commit 4863a39

Please sign in to comment.