Skip to content

Commit

Permalink
ci: remove marketplace integrations (#1602)
Browse files Browse the repository at this point in the history
Co-authored-by: jeho <17126497+j-zimnowoda@users.noreply.github.com>
  • Loading branch information
ElderMatt and j-zimnowoda authored May 3, 2024
1 parent 7856756 commit c82b047
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 48 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cloudtty-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '2'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Determine version
id: determine-version
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
- name: Login to GitHub Container Registry
if: ${{ env.NEW_VERSION != null }}
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
username: 'otomi'
password: '${{ secrets.DOCKERHUB_OTOMI_TOKEN }}'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ jobs:
--docker-username=${{ env.GIT_USER }} \
--docker-password='${{ secrets.NPM_TOKEN }}'
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare Otomi chart
if: ${{ inputs.install_profile != 'no-otomi' }}
run: |
Expand Down Expand Up @@ -391,7 +391,7 @@ jobs:
--docker-username=${{ env.GIT_USER }} \
--docker-password='${{ secrets.NPM_TOKEN }}'
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare Otomi chart
if: ${{ inputs.install_profile != 'no-otomi' }}
run: |
Expand Down
47 changes: 7 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
git config --global user.email $GIT_USER@users.noreply.github.com
git config --global user.name $GIT_USER
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
# - name: CI tests, image build and push tag for main or branch
# uses: whoan/docker-build-with-cache-action@v5
# with:
Expand All @@ -37,15 +37,15 @@ jobs:
# image_tag: ${{ env.TAG }}
# pull_image_and_stages: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to Github Packages
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
registry: ${{ env.CACHE_REGISTRY }}
username: ${{ env.GIT_USER }}
password: '${{ secrets.NPM_TOKEN }}'
- name: CI tests, image build and push tag for main or branch
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
tags: |
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
COMMIT_MSG: ${{ github.event.head_commit.message }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set env
run: |
git config --global user.email $GIT_USER@users.noreply.github.com
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
options: --user 0
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare chart
id: prepare_chart
run: |
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
region=nl-ams \
project-id=${{ secrets.SCW_DEFAULT_PROJECT_ID }} \
--wait
echo "CLuster deployed successfully"
echo "Cluster deployed successfully"
- name: Installing new otomi release
run: |
# Get cluster ID and set env var
Expand Down Expand Up @@ -277,36 +277,3 @@ jobs:
SLACK_ICON: https://github.com/redkubes.png?size=48
SLACK_TITLE: CI run
SLACK_USERNAME: RedKubesBot

execute-aws-marketplace:
name: AWS Dispatch
needs: chart-release
if: always() && contains(needs.chart-release.result, 'success') && !github.event.act
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.ACTIONS_KEY }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'redkubes',
repo: 'aws-marketplace',
workflow_id: 'deploy_release.yaml',
ref: 'main'
})
execute-azure-marketplace:
name: Azure Dispatch
needs: chart-release
if: always() && contains(needs.chart-release.result, 'success') && !github.event.act
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.ACTIONS_KEY }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'redkubes',
repo: 'azure-marketplace',
workflow_id: 'deploy_release.yaml',
ref: 'main'
})
6 changes: 3 additions & 3 deletions .github/workflows/otomi-tools-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: '2'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Determine version
id: determine-version
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Login to GitHub Container Registry
if: ${{ env.NEW_VERSION != null }}
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
username: 'otomi'
password: '${{ secrets.DOCKERHUB_OTOMI_TOKEN }}'
Expand Down

0 comments on commit c82b047

Please sign in to comment.