Skip to content

Commit

Permalink
ci: Bump containers reusable workflow version to v0.29.0 (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb authored Sep 17, 2024
2 parents b53bec5 + 7b6a661 commit 2566e62
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 122 deletions.
35 changes: 12 additions & 23 deletions .github/workflows/fileserver-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,42 +29,31 @@ 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@v0.29.0
with:
image_name: 'file-server'
package_dependencies: |
@flowfuse/file-server
build_context: 'file-server'
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/merge_multiarch_images.yml@v0.14.0
with:
image_name: 'file-server'
architecture_suffixes: |
-linux-amd64
secrets:
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}

upload-stage-image:
if: github.ref_name == 'main'
name: Upload image to staging registry
needs: build-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.28.0
needs: build
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.29.0
with:
environment: stage
service_name: 'file-server'
deployment_name: 'flowforge-file'
container_name: 'file-storage'
deploy: false
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 @@ -74,15 +63,15 @@ jobs:
upload-production-image:
if: github.ref_name == 'main'
name: Upload image to production registry
needs: build-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.28.0
needs: build
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.29.0
with:
environment: production
service_name: 'file-server'
deployment_name: 'flowforge-file'
container_name: 'file-storage'
deploy: false
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 Down Expand Up @@ -129,14 +118,14 @@ jobs:
# if: github.ref_name == 'main'
if: false
name: Deploy to staging environment
needs: build-multi-architecture
needs: build
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.28.0
with:
environment: stage
service_name: 'file-server'
deployment_name: 'flowforge-file'
container_name: 'file-storage'
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 @@ -147,14 +136,14 @@ jobs:
# if: github.ref_name == 'main'
if: false
name: Deploy to production environment
needs: [build-multi-architecture, deploy-stage]
needs: [build, deploy-stage]
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.28.0
with:
environment: production
service_name: 'file-server'
deployment_name: 'flowforge-file'
container_name: 'file-storage'
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 Down
39 changes: 16 additions & 23 deletions .github/workflows/flowforge-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,43 +29,34 @@ 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@v0.29.0
with:
image_name: 'forge-k8s'
package_dependencies: |
@flowfuse/flowfuse
@flowfuse/driver-kubernetes
build_context: 'flowforge-container'
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/merge_multiarch_images.yml@v0.14.0
with:
image_name: 'forge-k8s'
architecture_suffixes: |
-linux-amd64
secrets:
temporary_registry_token: ${{ secrets.GITHUB_TOKEN }}

upload-stage-image:
if: github.ref_name == 'main'
name: Upload image to staging registry
needs: build-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.28.0
needs: build
# needs: build-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.29.0
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,15 +66,17 @@ jobs:
upload-production-image:
if: github.ref_name == 'main'
name: Upload image to production registry
needs: build-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.28.0
# needs: build-multi-architecture
needs: build
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.29.0
with:
environment: production
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 Down Expand Up @@ -130,8 +123,8 @@ jobs:
# if: github.ref_name == 'main'
if: false
name: Deploy to staging environment
needs: build-multi-architecture
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.28.0
needs: build
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.29.0
with:
environment: stage
service_name: 'forge-k8s'
Expand All @@ -148,8 +141,8 @@ jobs:
# if: github.ref_name == 'main'
if: false
name: Deploy to production environment
needs: [build-multi-architecture, deploy-stage]
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.28.0
needs: [build, deploy-stage]
uses: flowfuse/github-actions-workflows/.github/workflows/deploy_container_image.yml@v0.29.0
with:
environment: production
service_name: 'forge-k8s'
Expand Down
Loading

0 comments on commit 2566e62

Please sign in to comment.