Skip to content

Commit

Permalink
update release flow; delete unused workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs committed May 28, 2024
1 parent 18e0480 commit c0e5ddd
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 456 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/docker-build-api-executors-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,82 @@ jobs:
DOCKER_BUILDX_CACHE_FROM: "type=gha"
DOCKER_BUILDX_CACHE_TO: "type=gha,mode=max"

log_server_sidecar:
strategy:
matrix:
service: [ logs-server, logs-sidecar ]
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: sigstore/[email protected]
- uses: anchore/sbom-action/[email protected]

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable

- name: Go Cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ matrix.service }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser-pro
version: latest
args: release -f ./goreleaser_files/.goreleaser-docker-build-logs-services.yml --snapshot
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
DOCKER_BUILDX_BUILDER: "${{ steps.buildx.outputs.name }}"
DOCKER_BUILDX_CACHE_FROM: "type=gha"
DOCKER_BUILDX_CACHE_TO: "type=gha,mode=max"
ALPINE_IMAGE: ${{ env.ALPINE_IMAGE }}
BUSYBOX_IMAGE: ${{ env.BUSYBOX_IMAGE }}
SERVICE: ${{ matrix.service }}

- name: Push README to Dockerhub
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }}
with:
destination_container_repo: kubeshop/testkube-${{ matrix.service }}
provider: dockerhub
short_description: "Testkube CLI Docker image"
readme_file: "./README.md"

update_api_helm_charts:
needs:
[
Expand All @@ -901,6 +977,7 @@ jobs:
executor_cypress,
executor_cypress_manifest,
executor_playwright,
log_server_sidecar
]
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/docker-build-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,13 @@ jobs:
service: [ logs-server, logs-sidecar ]
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/docker-build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,80 @@ jobs:
docker manifest create kubeshop/testkube-postman-executor:node21-${{ steps.commit.outputs.short }} --amend kubeshop/testkube-postman-executor:node21-${{ steps.commit.outputs.short }}-arm64v8 --amend kubeshop/testkube-postman-executor:node21-${{ steps.commit.outputs.short }}-amd64
docker manifest push -p kubeshop/testkube-postman-executor:node21-${{ steps.commit.outputs.short }}
log_server_sidecar:
strategy:
matrix:
service: [ logs-server, logs-sidecar ]
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable

- name: Go Cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ matrix.service }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- id: commit
uses: prompt/actions-commit-hash@v3

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser-pro
version: latest
args: release -f ./goreleaser_files/.goreleaser-docker-build-logs-services.yml --snapshot
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
DOCKER_BUILDX_BUILDER: "${{ steps.buildx.outputs.name }}"
DOCKER_BUILDX_CACHE_FROM: "type=gha"
DOCKER_BUILDX_CACHE_TO: "type=gha,mode=max"
ALPINE_IMAGE: ${{ env.ALPINE_IMAGE }}
BUSYBOX_IMAGE: ${{ env.BUSYBOX_IMAGE }}
DOCKER_IMAGE_TAG: ${{ steps.commit.outputs.short }}
SERVICE: ${{ matrix.service }}

- name: Push Docker images
run: |
docker push kubeshop/testkube-${{ matrix.service }}:${{ steps.commit.outputs.short }}-arm64v8
docker push kubeshop/testkube-${{ matrix.service }}:${{ steps.commit.outputs.short }}-amd64
docker manifest create kubeshop/testkube-${{ matrix.service }}:${{ steps.commit.outputs.short }} --amend kubeshop/testkube-${{ matrix.service }}:${{ steps.commit.outputs.short }}-arm64v8 --amend kubeshop/testkube-${{ matrix.service }}:${{ steps.commit.outputs.short }}-amd64
docker manifest push -p kubeshop/testkube-${{ matrix.service }}:${{ steps.commit.outputs.short }}
workflow_dispatch:
needs: [ api, single_executor, executor_jmeter, executor_jmeterd, jmeterd_slave, executor_maven, executor_gradle, executor_cypress, executor_playwright ]
runs-on: ubuntu-latest
Expand Down
50 changes: 0 additions & 50 deletions .github/workflows/manual-bump-formula.yaml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/manual-choco-release.yaml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/workflows/release-dev-log-server.yaml

This file was deleted.

Loading

0 comments on commit c0e5ddd

Please sign in to comment.