Skip to content

Commit

Permalink
add workbench-session-init target to manual and preview workflows to …
Browse files Browse the repository at this point in the history
…enable build/publish of daily
  • Loading branch information
skyeturriff committed Oct 29, 2024
1 parent 9a68a9d commit c8690ca
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-bake-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,43 @@ jobs:
dockerhub-token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
snyk-org: ${{ secrets.SNYK_ORG }}
snyk-token: '${{ secrets.SNYK_TOKEN }}'

workbench-session-init-daily:
needs: [versions]
name: Workbench Session Init - Daily
runs-on: ubuntu-latest-4x

env:
target: "workbench-session-init-daily"
WORKBENCH_DAILY_VERSION: ${{ needs.versions.outputs.WORKBENCH_DAILY_VERSION }}
WORKBENCH_PREVIEW_VERSION: ${{ needs.versions.outputs.WORKBENCH_PREVIEW_VERSION }}
PACKAGE_MANAGER_DAILY_VERSION: ${{ needs.versions.outputs.PACKAGE_MANAGER_DAILY_VERSION }}
PACKAGE_MANAGER_PREVIEW_VERSION: ${{ needs.versions.outputs.PACKAGE_MANAGER_PREVIEW_VERSION }}
CONNECT_DAILY_VERSION: ${{ needs.versions.outputs.CONNECT_DAILY_VERSION }}
BRANCH: ${{ github.head_ref || github.ref_name }}

concurrency:
group: bake-workbench-session-init-daily-${{ github.ref }}
cancel-in-progress: true

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
id: setup-buildx
with:
buildkitd-config: ./share/buildkitd.toml

- name: Build, Test, and Push
uses: ./.github/actions/bake-test-push
with:
target: ${{ env.target }}
bakefile: docker-bake.preview.hcl
push-image: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/dev-rspm' }}
ghcr-token: ${{ secrets.GITHUB_TOKEN }}
dockerhub-username: ${{ secrets.DOCKER_HUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
snyk-org: ${{ secrets.SNYK_ORG }}
snyk-token: '${{ secrets.SNYK_TOKEN }}'
1 change: 1 addition & 0 deletions .github/workflows/build-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- workbench
- workbench-for-google-cloud-workstations
- workbench-for-microsoft-azure-ml
- workbench-session-init
type:
description: "The type of image being built."
required: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- {product: 'connect-content-init', os: 'ubuntu2204'}
- {product: 'package-manager', os: 'ubuntu2204'}
- {product: 'r-session-complete', os: 'ubuntu2204'}
- {product: 'workbench-session-init', os: 'ubuntu2204'}
- {product: 'workbench-for-microsoft-azure-ml', os: 'ubuntu2204'}
- {product: 'content/base', os: 'ubuntu1804'}
- {product: 'content/base', os: 'ubuntu2204'}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- {prefix: '', repository: 'content-pro', readme_path: './content/pro/README.md'}
- {prefix: 'rstudio-', repository: 'package-manager', readme_path: './package-manager/README.md'}
- {prefix: '', repository: 'r-session-complete', readme_path: './r-session-complete/README.md'}
- {prefix: '', repository: 'workbench-session-init', readme_path: './workbench-session-init/README.md'}

steps:
- name: Check Out Repo
Expand Down
1 change: 1 addition & 0 deletions docker-bake.preview.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ group "default" {
"r-session-complete-daily",
"workbench-preview",
"workbench-daily",
"workbench-session-init-daily",
]
}

Expand Down
1 change: 1 addition & 0 deletions tools/dockerhub_clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"rstudio-workbench",
"rstudio-workbench-for-microsoft-azure-ml",
"rstudio-workbench-preview",
"workbench-session-init-preview",
]


Expand Down

0 comments on commit c8690ca

Please sign in to comment.