Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jul 16, 2023
1 parent 98b8d3c commit 02106dd
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 41 deletions.
5 changes: 0 additions & 5 deletions .github/actions/delete-preview/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ inputs:
name:
description: "The name of the preview environment"
required: true
previewctl_hash:
description: "The Leeway hash of the dev/preview/previewctl:docker package to be used when downloading previewclt"
required: false

runs:
using: "composite"
Expand All @@ -20,8 +17,6 @@ runs:
run: |
gcloud auth activate-service-account --key-file "${PREVIEW_ENV_DEV_SA_KEY_PATH}"
leeway run dev/preview/previewctl:download
previewctl get-credentials --gcp-service-account "${PREVIEW_ENV_DEV_SA_KEY_PATH}"
export TF_INPUT=0
Expand Down
2 changes: 0 additions & 2 deletions .github/actions/deploy-gitpod/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ oci-tool fetch file -o /tmp/versions.yaml --platform=linux-amd64 "eu.gcr.io/gitp

gcloud auth activate-service-account --key-file "${PREVIEW_ENV_DEV_SA_KEY_PATH}"

leeway run dev/preview/previewctl:download

echo "Setting up access to core-dev and harvester"
previewctl get-credentials --gcp-service-account "${PREVIEW_ENV_DEV_SA_KEY_PATH}"

Expand Down
3 changes: 0 additions & 3 deletions .github/actions/deploy-gitpod/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ inputs:
version:
description: "The version of Gitpod to install"
required: true
previewctl_hash:
description: "The Leeway hash of the dev/preview/previewctl:docker package to be used when downloading previewclt"
required: false
with_dedicated_emu:
description: "Dedicated Config"
required: false
Expand Down
5 changes: 0 additions & 5 deletions .github/actions/deploy-monitoring-satellite/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-token-gha.13623

USER root
ENV OCI_TOOL_VERSION="0.2.0"
RUN curl -fsSL https://github.com/csweichel/oci-tool/releases/download/v${OCI_TOOL_VERSION}/oci-tool_${OCI_TOOL_VERSION}_linux_amd64.tar.gz | tar xz -C /usr/local/bin && chmod +x /usr/local/bin/oci-tool
USER gitpod

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2 changes: 0 additions & 2 deletions .github/actions/deploy-monitoring-satellite/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ mkdir "$HOME/bin"

gcloud auth activate-service-account --key-file "${PREVIEW_ENV_DEV_SA_KEY_PATH}"

leeway run dev/preview/previewctl:download

echo "previewctl get-credentials"
previewctl get-credentials --gcp-service-account "${PREVIEW_ENV_DEV_SA_KEY_PATH}"

Expand Down
4 changes: 1 addition & 3 deletions .github/actions/deploy-monitoring-satellite/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ inputs:
sa_key:
description: "The service account key to use when authenticating with GCP"
required: true
previewctl_hash:
description: "The Leeway hash of the dev/preview/previewctl:docker package to be used when downloading previewclt"
required: false

runs:
using: "docker"
image: "Dockerfile"
5 changes: 0 additions & 5 deletions .github/actions/preview-create/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
FROM eu.gcr.io/gitpod-core-dev/dev/dev-environment:aledbf-token-gha.13623

USER root
ENV OCI_TOOL_VERSION="0.2.0"
RUN curl -fsSL https://github.com/csweichel/oci-tool/releases/download/v${OCI_TOOL_VERSION}/oci-tool_${OCI_TOOL_VERSION}_linux_amd64.tar.gz | tar xz -C /usr/local/bin && chmod +x /usr/local/bin/oci-tool
USER gitpod

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2 changes: 0 additions & 2 deletions .github/actions/preview-create/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

set -euo pipefail

leeway run dev/preview/previewctl:download

previewctl get-credentials --gcp-service-account "${INPUT_SA_KEY}"

replace="module.preview_gce[0].google_compute_instance.default"
Expand Down
3 changes: 0 additions & 3 deletions .github/actions/preview-create/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ inputs:
description: "Whether to use a larger VM for the env"
required: true
default: false
previewctl_hash:
description: "The Leeway hash of the dev/preview/previewctl:docker package to be used when downloading previewclt"
required: false
recreate_vm:
description: "Whether to recreate the VM"
required: false
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
infrastructure_provider: ${{ needs.configuration.outputs.preview_infra_provider }}
large_vm: ${{ needs.configuration.outputs.with_large_vm }}
recreate_vm: ${{ inputs.recreate_vm }}
sa_key: ${{ secrets.GCP_CREDENTIALS }}
sa_key: ${{ steps.auth.outputs.credentials_file_path }}
leeway_segment_key: ${{ secrets.LEEWAY_SEGMENT_KEY }}
build-gitpod:
name: Build Gitpod
Expand Down Expand Up @@ -397,8 +397,6 @@ jobs:
TEST_BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
TEST_BUILD_REF: ${{ github.head_ref || github.ref }}
run: |
leeway run dev/preview/previewctl:install
echo "Setting up access to core-dev and harvester"
previewctl get-credentials --gcp-service-account "${PREVIEW_ENV_DEV_SA_KEY_PATH}"
previewctl install-context --branch "${PREVIEW_NAME}" --log-level debug --timeout 1m --gcp-service-account "${PREVIEW_ENV_DEV_SA_KEY_PATH}"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ide-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ jobs:
gcloud auth activate-service-account --key-file ${{ steps.auth.outputs.credentials_file_path }}
leeway run dev/preview/previewctl:install
echo "Setting up access to core-dev and harvester"
previewctl get-credentials --gcp-service-account "${PREVIEW_ENV_DEV_SA_KEY_PATH}"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/preview-env-check-regressions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ jobs:
gcloud auth activate-service-account --key-file ${{ steps.auth.outputs.credentials_file_path }}
leeway run dev/preview/previewctl:install
echo "Setting up access to core-dev and harvester"
previewctl get-credentials --gcp-service-account "${PREVIEW_ENV_DEV_SA_KEY_PATH}"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/preview-env-gc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
gcloud auth activate-service-account --key-file ${{ steps.auth.outputs.credentials_file_path }}
leeway run dev/preview/previewctl:install
previewctl get-credentials --gcp-service-account ${{ steps.auth.outputs.credentials_file_path }}
previewctl list stale | jq --null-input --raw-input --compact-output '[inputs | select(length>0)]' > /tmp/stale-json
echo "names=$(cat /tmp/stale-json)" >> $GITHUB_OUTPUT
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/workspace-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ jobs:
gcloud auth activate-service-account --key-file ${{ steps.auth.outputs.credentials_file_path }}
leeway run dev/preview/previewctl:install
echo "Setting up access to core-dev and harvester"
previewctl get-credentials --gcp-service-account ${{ steps.auth.outputs.credentials_file_path }}
Expand Down

0 comments on commit 02106dd

Please sign in to comment.