From 3ea30ce3f695c0eef21b60ffb9efbb64e38ac3ef Mon Sep 17 00:00:00 2001 From: David Gauldie Date: Wed, 12 Jul 2023 12:58:43 -0400 Subject: [PATCH] removed unnecessary CI actions --- .github/workflows/deploy.yml | 30 ----- .github/workflows/docker.yml | 220 ----------------------------------- 2 files changed, 250 deletions(-) delete mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 1df1a6bba03..00000000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: SKEMA AWS -on: - workflow_run: - workflows: ["SKEMA docker"] - branches: [main] - types: ["completed"] -env: - SKEMA_ECS_CLUSTER_NAME_MAIN: ${{ secrets.SKEMA_ECS_CLUSTER_NAME_MAIN }} - SKEMA_ECS_SERVICE_NAME_MAIN: ${{ secrets.SKEMA_ECS_SERVICE_NAME_MAIN }} - SKEMA_AWS_REGION: ${{ secrets.SKEMA_AWS_REGION }} -jobs: - deploy: - if: ${{ github.event.workflow_run.conclusion == 'success' }} - name: "deploy skema system to AWS" - runs-on: ubuntu-latest - steps: - # main deployment - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.SKEMA_AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.SKEMA_AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.SKEMA_AWS_REGION }} - - name: Deploy - if: github.ref == 'refs/heads/main' - run: | - # update skema-py - aws ecs update-service --cluster $SKEMA_ECS_CLUSTER_NAME_MAIN --service darpa-askem-main-ecs-skema-py --force-new-deployment --region $SKEMA_AWS_REGION &>/dev/null - # update skema-rs - aws ecs update-service --cluster $SKEMA_ECS_CLUSTER_NAME_MAIN --service darpa-askem-main-ecs-skema-rs --force-new-deployment --region $SKEMA_AWS_REGION &>/dev/null \ No newline at end of file diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 92a29760dcd..00000000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,220 +0,0 @@ -name: SKEMA docker - -on: - push: - branches: [main] - tags: - - "**" - pull_request: - branches: [main] - release: - types: [published] - -# builds and publishes docker images for the default branch. -# images are tagged with short commit hash, latest, and any tags. -jobs: - python: - name: "docker image for python components" - runs-on: ubuntu-latest - steps: - # Setup docker - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - # for multi-arch builds (ex. ARM 64) - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - # - name: Prepare buildx builder - # run: | - # docker buildx create --use --name "multiarch-builder" --platform linux/amd64,linux/arm64 --driver "docker-container" - - name: Inspect builder - run: | - echo "Name: ${{ steps.buildx.outputs.name }}" - echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}" - echo "Status: ${{ steps.buildx.outputs.status }}" - echo "Flags: ${{ steps.buildx.outputs.flags }}" - echo "Platforms: ${{ steps.buildx.outputs.platforms }}" - # Checkout code - - name: Checkout code - uses: actions/checkout@v3 - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.LUM_ASKEM_DOCKERHUB_USERNAME }} - password: ${{ secrets.LUM_ASKEM_DOCKERHUB_TOKEN }} - - name: "Free disk space" - run: | - sudo apt clean - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - ######################################## - # lumai/askem-skema-py (img2mml, isa, etc) - ######################################## - - name: Tags for image - id: tags - # see https://github.com/docker/metadata-action - uses: docker/metadata-action@v4 - with: - images: | - lumai/askem-skema-py - lumai/askem-skema-img2mml - tags: | - # latest - type=raw,value=latest - # version - type=semver,pattern={{version}} - # other tags - type=ref,event=tag - # short commit hash - type=sha - - - name: Build and push image - # see https://github.com/docker/build-push-action - uses: docker/build-push-action@v4 - with: - context: . - file: "Dockerfile.skema-py" - platforms: linux/amd64 - #platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} - # references `tags` step in steps for current job - tags: ${{ steps.tags.outputs.tags }} - build-args: | - APP_VERSION=${{github.sha}} - - rust: - name: "docker image for rust components" - runs-on: ubuntu-latest - steps: - # Setup docker - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - # for multi-arch builds (ex. ARM 64) - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - # - name: Prepare buildx builder - # run: | - # docker buildx create --use --name "multiarch-builder" --platform linux/amd64,linux/arm64 --driver "docker-container" - - name: Inspect builder - run: | - echo "Name: ${{ steps.buildx.outputs.name }}" - echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}" - echo "Status: ${{ steps.buildx.outputs.status }}" - echo "Flags: ${{ steps.buildx.outputs.flags }}" - echo "Platforms: ${{ steps.buildx.outputs.platforms }}" - # Checkout code - - name: Checkout code - uses: actions/checkout@v3 - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.LUM_ASKEM_DOCKERHUB_USERNAME }} - password: ${{ secrets.LUM_ASKEM_DOCKERHUB_TOKEN }} - - name: "Free disk space" - run: | - sudo apt clean - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - ######################################## - # lumai/askem-skema-rs - ######################################## - - name: Tags for image - id: tags - # see https://github.com/docker/metadata-action - uses: docker/metadata-action@v4 - with: - images: lumai/askem-skema-rs - tags: | - # latest - type=raw,value=latest - # version - type=semver,pattern={{version}} - # other tags - type=ref,event=tag - # short commit hash - type=sha - - - name: Build and push image - # see https://github.com/docker/build-push-action - uses: docker/build-push-action@v4 - with: - context: . - file: "Dockerfile.skema-rs" - platforms: linux/amd64 - #platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} - # references `tags` step in steps for current job - tags: ${{ steps.tags.outputs.tags }} - - text_reading: - name: "docker image for text reading component" - runs-on: ubuntu-latest - steps: - # Setup docker - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - # for multi-arch builds (ex. ARM 64) - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - # - name: Prepare buildx builder - # run: | - # docker buildx create --use --name "multiarch-builder" --platform linux/amd64,linux/arm64 --driver "docker-container" - - name: Inspect builder - run: | - echo "Name: ${{ steps.buildx.outputs.name }}" - echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}" - echo "Status: ${{ steps.buildx.outputs.status }}" - echo "Flags: ${{ steps.buildx.outputs.flags }}" - echo "Platforms: ${{ steps.buildx.outputs.platforms }}" - # Checkout code - - name: Checkout code - uses: actions/checkout@v3 - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.LUM_ASKEM_DOCKERHUB_USERNAME }} - password: ${{ secrets.LUM_ASKEM_DOCKERHUB_TOKEN }} - - name: "Free disk space" - run: | - sudo apt clean - sudo rm -rf /usr/share/dotnet - sudo rm -rf /opt/ghc - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - - ######################################## - # lumai/askem-skema-text-reading - ######################################## - - name: Tags for image - id: tags - # see https://github.com/docker/metadata-action - uses: docker/metadata-action@v4 - with: - images: lumai/askem-skema-text-reading - tags: | - # latest - type=raw,value=latest - # version - type=semver,pattern={{version}} - # other tags - type=ref,event=tag - # short commit hash - type=sha - - - name: Build and push image - # see https://github.com/docker/build-push-action - uses: docker/build-push-action@v4 - with: - context: ./skema/text_reading/scala - platforms: linux/amd64 - push: ${{ github.event_name != 'pull_request' }} - # references `tags` step in steps for current job - tags: ${{ steps.tags.outputs.tags }}