Use Date format for TTL fields in Mongo tables (#412) #455
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD Main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: write # This is required for actions/checkout (read) and publishing tags (write) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
tool-cache: false | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: false | |
docker-images: true | |
swap-storage: true | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.TOOLS_GHA_TOKEN }} | |
submodules: recursive | |
fetch-depth: 0 | |
- name: "Set up JDK 11" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
# Install an older version of helm until https://github.com/helm/helm/issues/12463 is fixed | |
- name: "Set up helm" | |
uses: azure/setup-helm@v3 | |
with: | |
version: 'v3.11.3' | |
id: install | |
- name: "Login to AWS & Public ECR" | |
uses: ./.github/actions/aws-and-ecr-login | |
id: login-ecr-public | |
with: | |
role-session-name: github-publish-artifacts | |
aws-region: us-east-1 | |
public: "true" | |
- name: "Gradle Build" | |
uses: gradle/[email protected] | |
with: | |
arguments: build | |
- name: "Publish To S3" | |
uses: gradle/[email protected] | |
with: | |
arguments: publishMavenJavaPublicationToS3Repository # publish only to S3 | |
if: github.ref == 'refs/heads/main' | |
# We need this to emulate other architectures for multi-platform docker builds | |
- name: "Set up QEMU for Docker" | |
uses: docker/setup-qemu-action@v2 | |
# We use the build extensions to do multi-architecture docker builds | |
- name: "Set up Docker Buildx" | |
uses: docker/setup-buildx-action@v2 | |
- name: "Publish Images" | |
uses: gradle/[email protected] | |
with: | |
arguments: pushCRD pushDockerMultiArch pushHelm -PdockerRegistry=${{ steps.login-ecr-public.outputs.public-registry }}/j8q9y0n6 -PhelmRegistry=${{ steps.login-ecr-public.outputs.public-registry }}/j8q9y0n6 | |
#if: github.ref == 'refs/heads/main' | |
- name: "Login to AWS & ECR" | |
uses: ./.github/actions/aws-and-ecr-login | |
with: | |
role-session-name: github-publish-artifacts | |
aws-region: us-west-2 | |
- name: "Checkout sindri" | |
uses: actions/checkout@v3 | |
with: | |
repository: responsivedev/sindri | |
path: sindri | |
ref: refs/heads/main | |
token: ${{ secrets.TOOLS_GHA_TOKEN }} | |
- name: "Install Kind" | |
uses: helm/[email protected] | |
with: | |
install_only: true | |
- name: "Run Smoke Test" | |
run: | | |
sindri/scripts/update-client-versions -s main -p true -i public.ecr.aws/j8q9y0n6/responsiveinc/simple-example -t `./gradlew kafka-client:cV | grep "Project version" | sed 's/Project version: //'` | |
sindri/scripts/run-smoke-test -s main -w system-tests-pub | |
env: | |
DD_SERVICE: "https://us5.datadoghq.com/" | |
DD_API_KEY: ${{ secrets.DD_API_KEY }} | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | |
- name: "Push next pub version to Sindri" | |
working-directory: sindri | |
run: | | |
git config --global user.name 'Responsive Tools' | |
git config --global user.email '[email protected]' | |
(git commit -am "update responsive-pub artifact versions" && git push) || echo "git commit failed. likely due to empty commit" |