Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ci for scrypto-dev-container docker target #2034

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci-scrypto-dev-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build scrypto-dev-container image

on:
push:
branches:
- develop
- main
- release\/*
pull_request:

jobs:
tags:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.setup_tags.outputs.tag }}
steps:
- uses: RDXWorks-actions/checkout@main
with:
fetch-depth: 0
- id: setup_tags
run: echo "tag=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
build-amd:
permissions:
contents: read
id-token: write
packages: write
pull-requests: write
needs: tags
uses: radixdlt/public-iac-resuable-artifacts/.github/workflows/docker-build.yml@main
with:
runs_on: gh-runner-scrypto-ubuntu-jammy-16-cores
image_registry: "docker.io"
image_organization: "radixdlt"
image_name: "private-scrypto-dev-container"
tag: ${{ needs.tags.outputs.tag }}
context: "."
dockerfile: "Dockerfile"
target: "scrypto-dev-container"
platforms: "linux/amd64"
provenance: "false"
scan_image: true
snyk_target_ref: ${{ github.ref_name }}
enable_dockerhub: false
secrets:
role_to_assume: ${{ secrets.DOCKERHUB_RELEASER_ROLE }}
34 changes: 34 additions & 0 deletions .github/workflows/publish-scrypto-dev-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish scrypto-dev-container image

on:
workflow_dispatch:
inputs:
docker_tag:
description: "Docker tag to be published"

permissions:
packages: write
pull-requests: write
id-token: write
contents: read

jobs:
build-amd:
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 }}
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 }}
Loading