From 84a27d76349c671d73bf23b19abcd1d7471708b3 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Wed, 5 Feb 2025 23:37:40 -0700 Subject: [PATCH] Update GitHub Actions workflows. (#1630) This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 030556b6eb1898595f71f73dd5355c8fc2cfcff0. --- .devcontainer/Dockerfile | 12 ++++++++++++ .devcontainer/devcontainer.json | 16 ++++++++++++++++ .github/actions/setup-tools/action.yml | 2 +- .github/workflows/main-post-build.yml | 20 ++++++++++++++++++++ .github/workflows/master.yml | 9 ++++++++- .upgrade-config.yml | 1 - devbox.json | 22 ++++++++++++++++++++++ devbox.lock | 1 + 8 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/workflows/main-post-build.yml delete mode 100644 .upgrade-config.yml create mode 100644 devbox.json create mode 100644 devbox.lock diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000..7d46cd807 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,12 @@ +FROM jetpackio/devbox:latest + +# Installing your devbox project +WORKDIR /code +COPY devbox.json devbox.json +COPY devbox.lock devbox.lock +RUN sudo chown -R "${DEVBOX_USER}:${DEVBOX_USER}" /code + + +RUN devbox run -- echo "Installed Packages." + +RUN devbox shellenv --init-hook >> ~/.profile diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..e7ae9f11f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,16 @@ +{ + "name": "Devbox Remote Container", + "build": { + "dockerfile": "./Dockerfile", + "context": ".." + }, + "customizations": { + "vscode": { + "settings": {}, + "extensions": [ + "jetpack-io.devbox" + ] + } + }, + "remoteUser": "devbox" +} \ No newline at end of file diff --git a/.github/actions/setup-tools/action.yml b/.github/actions/setup-tools/action.yml index 8d89bab91..edf59f893 100644 --- a/.github/actions/setup-tools/action.yml +++ b/.github/actions/setup-tools/action.yml @@ -72,7 +72,7 @@ runs: - name: Setup DotNet if: inputs.tools == 'all' || contains(inputs.tools, 'dotnet') - uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2.0 + uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0 with: dotnet-version: 6.0.x diff --git a/.github/workflows/main-post-build.yml b/.github/workflows/main-post-build.yml new file mode 100644 index 000000000..4d346181e --- /dev/null +++ b/.github/workflows/main-post-build.yml @@ -0,0 +1,20 @@ +# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt + +name: "Main post-build" + +on: + workflow_call: + inputs: + version: + type: string + required: true + +jobs: + post_build: + name: post_build + runs-on: ubuntu-latest + if: false + steps: + - name: Placeholder + shell: bash + run: echo "This is a placeholder job to ensure that the post_build job is always present" diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 88a04ee08..a096ff85d 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -51,7 +51,14 @@ jobs: with: version: ${{ needs.prerequisites.outputs.version }} - + post_build: + name: post_build + needs: prerequisites + uses: ./.github/workflows/main-post-build.yml + secrets: inherit + with: + version: ${{ needs.prerequisites.outputs.version }} + lint: name: lint uses: ./.github/workflows/lint.yml diff --git a/.upgrade-config.yml b/.upgrade-config.yml deleted file mode 100644 index 8b1378917..000000000 --- a/.upgrade-config.yml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/devbox.json b/devbox.json new file mode 100644 index 000000000..1917bf703 --- /dev/null +++ b/devbox.json @@ -0,0 +1,22 @@ +{ + "packages": [ + "yarn@latest", + "pulumictl@latest", + "go@1.21.", + "nodejs@20.", + "python3@3.11.8", + "dotnet-sdk@6.0.", + "gradle_7@7.6", + "curl@8" + ], + "shell": { + "init_hook": [ + "export PATH=\"$(pwd)/bin/:$PATH\"" + ], + "scripts": { + "test": [ + "echo \"Error: no test specified\" && exit 1" + ] + } + } +} diff --git a/devbox.lock b/devbox.lock new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/devbox.lock @@ -0,0 +1 @@ +{}