2023-10-12 07:27:02 -04:00
|
|
|
name: E2E Test s3proxy
|
|
|
|
description: "Test the s3proxy."
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
kubeconfig:
|
|
|
|
description: "Kubeconfig to access target cluster"
|
|
|
|
required: true
|
|
|
|
s3AccessKey:
|
|
|
|
description: "Access key for s3proxy"
|
|
|
|
required: true
|
|
|
|
s3SecretKey:
|
|
|
|
description: "Secret key for s3proxy"
|
|
|
|
required: true
|
|
|
|
githubToken:
|
|
|
|
description: "GitHub token"
|
|
|
|
required: true
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Setup bazel
|
|
|
|
uses: ./.github/actions/setup_bazel_nix
|
|
|
|
|
|
|
|
- name: Get pseudoversion
|
|
|
|
id: pseudoversion
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
bazel build //bazel/settings:tag
|
|
|
|
echo pseudoversion=$(cat ./bazel-bin/bazel/settings/_tag.tags.txt) | tee -a "$GITHUB_OUTPUT"
|
|
|
|
|
|
|
|
- name: Log in to the Container registry
|
|
|
|
uses: ./.github/actions/container_registry_login
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ inputs.githubToken }}
|
|
|
|
|
|
|
|
- name: Build and push s3proxy image
|
|
|
|
id: s3proxybuild
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
bazel run //bazel/release:s3proxy_push
|
2024-01-08 08:32:08 -05:00
|
|
|
bazel build //bazel/release:s3proxy_tag.txt
|
|
|
|
tagpath=$(bazel cquery --output=files //bazel/release:s3proxy_tag.txt)
|
|
|
|
echo s3proxyImage=$(cat "${tagpath}") | tee -a "$GITHUB_OUTPUT"
|
2023-10-12 07:27:02 -04:00
|
|
|
|
|
|
|
- name: Setup s3proxy
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
|
|
|
S3_PROXY_IMAGE: ${{ steps.s3proxybuild.outputs.s3proxyImage }}
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ inputs.s3AccessKey }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ inputs.s3SecretKey }}
|
|
|
|
run: |
|
2023-10-27 10:16:31 -04:00
|
|
|
helm install s3proxy --set awsAccessKeyID="$AWS_ACCESS_KEY_ID" --set awsSecretAccessKey="$AWS_SECRET_ACCESS_KEY" --set image="$S3_PROXY_IMAGE" --set allowMultipart=true s3proxy/deploy/s3proxy
|
2023-10-12 07:27:02 -04:00
|
|
|
|
|
|
|
- name: Run mint
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
KUBECONFIG: ${{ inputs.kubeconfig }}
|
|
|
|
ACCESS_KEY: ${{ inputs.s3AccessKey }}
|
|
|
|
SECRET_KEY: ${{ inputs.s3SecretKey }}
|
2024-02-22 08:04:42 -05:00
|
|
|
IMAGE: "ghcr.io/edgelesssys/mint:v2.0.0@sha256:cf82f029ca77fd4ade4fb36f19945f44e58b1d03c1acb930d95ae7ec75a25c22" # renovate:mint-fork
|
2023-10-12 07:27:02 -04:00
|
|
|
run: |
|
|
|
|
./s3proxy/e2e/deploy.sh "$IMAGE"
|