Skip to content

Build arm64 image for dev-container #4

Build arm64 image for dev-container

Build arm64 image for dev-container #4

name: Publish scrypto-dev-container image
on:
workflow_dispatch:
inputs:
docker_tag:
description: "Docker tag to be published"
# TODO: Remove after testing
pull_request:
permissions:
packages: write
pull-requests: write
id-token: write
contents: read
jobs:
build_amd64:
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/docker-build.yml@main
with:
runs_on: ubuntu-16-cores-selfhosted
environment: "release"
image_registry: "docker.io"
image_organization: "radixdlt"
image_name: "scrypto-dev-container"
tag: testing # TODO Update after testing
# tag: ${{ inputs.docker_tag }} # TODO Update after testing
context: "."
dockerfile: "Dockerfile"
target: "scrypto-dev-container"
platforms: "linux/amd64"
provenance: "false"
scan_image: true
snyk_target_ref: ${{ github.ref_name }}
enable_dockerhub: true
secrets:
role_to_assume: ${{ secrets.DOCKERHUB_RELEASER_ROLE }}
build_arm64:
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/docker-build.yml@main
with:
runs_on: ubuntu-16-cores-selfhosted
environment: "release"
image_registry: "docker.io"
image_organization: "radixdlt"
image_name: "scrypto-dev-container"
# tag: ${{ inputs.docker_tag }} # TODO Update after testing
tag: testing # TODO Update after testing
context: "."
dockerfile: "Dockerfile"
target: "scrypto-dev-container"
platforms: "linux/arm64"
provenance: "false"
scan_image: false
snyk_target_ref: ${{ github.ref_name }}
enable_dockerhub: true
secrets:
role_to_assume: ${{ secrets.DOCKERHUB_RELEASER_ROLE }}
join_multiarch_image:
name: Join multiarch image
needs:
- build_amd64
- build_arm64
permissions:
id-token: write
contents: read
pull-requests: read
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/join-docker-images-all-tags.yml@main
with:
aws_dockerhub_secret: github-actions/rdxworks/dockerhub-images/release-credentials
amd_meta_data_json: ${{needs.build_push_container_dockerhub.outputs.json}}
secrets:
role-to-assume: ${{ secrets.DOCKERHUB_RELEASER_ROLE }}