Skip to content

Commit

Permalink
Merge pull request #1587 from radixdlt/chore/publish-simulator-image
Browse files Browse the repository at this point in the history
publish the scrypto builder docker image
  • Loading branch information
iamyulong authored Sep 22, 2023
2 parents dfcad00 + 4a8492c commit cbcee22
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Simulator
name: Build scrypto-builder image

on:
pull_request:
release:
types: [published]
push:
branches:
- develop
Expand All @@ -25,18 +22,18 @@ jobs:
needs: tags
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/docker-build.yml@main
with:
runs_on: ubuntu-latest
runs_on: ubuntu-latest-16-cores
image_registry: "docker.io"
image_organization: "radixdlt"
image_name: "simulator"
image_name: "scrypto-builder"
tag: ${{ needs.tags.outputs.tag }}
context: "."
dockerfile: "Dockerfile"
platforms: "linux/amd64"
provenance: "false"
scan_image: false
snyk_target_ref: ${{ github.ref_name }}
enable_dockerhub: ${{ github.event_name }} == 'release'
enable_dockerhub: false
post_script: "./update-assets.sh --reuse-image --image-tag ${{ needs.tags.outputs.tag }}"
secrets:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDP }}
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/publish-scrypto-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish scrypto-builder image

on:
workflow_dispatch:
inputs:
image-label:
description: "Docker image label to be published"

jobs:

build-amd:
needs: oidc_debugger
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/docker-build.yml@main
with:
runs_on: ubuntu-latest-16-cores
environment: "release"
image_registry: "docker.io"
image_organization: "radixdlt"
image_name: "scrypto-builder"
tag: ${{ inputs.image-label }}
context: "."
dockerfile: "Dockerfile"
platforms: "linux/amd64"
provenance: "false"
scan_image: true
snyk_target_ref: ${{ github.ref_name }}
enable_dockerhub: true
secrets:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDP }}
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
role_to_assume: ${{ secrets.DOCKERHUB_RELEASER_ROLE }}

0 comments on commit cbcee22

Please sign in to comment.