github.com/kubeshop/testkube@v1.17.23/.github/workflows/release-log-server.yaml (about) 1 name: Release logs server 2 3 on: 4 push: 5 tags: 6 - "v[0-9]+.[0-9]+.[0-9]+" 7 8 permissions: 9 id-token: write 10 contents: write 11 12 env: 13 ALPINE_IMAGE: alpine:3.18.0 14 BUSYBOX_IMAGE: busybox:1.36.1-musl 15 16 jobs: 17 pre_build: 18 name: Pre-build 19 runs-on: ubuntu-latest 20 steps: 21 - name: Checkout 22 uses: actions/checkout@v2 23 with: 24 fetch-depth: 0 25 26 - name: Set up QEMU 27 uses: docker/setup-qemu-action@v1 28 29 - name: Set up Docker Buildx 30 id: buildx 31 uses: docker/setup-buildx-action@v1 32 33 - uses: sigstore/cosign-installer@v3.4.0 34 - uses: anchore/sbom-action/download-syft@v0.14.2 35 36 - name: Set up Go 37 uses: actions/setup-go@v2 38 with: 39 go-version: 1.21 40 41 - name: Go Cache 42 uses: actions/cache@v2 43 with: 44 path: | 45 ~/go/pkg/mod 46 ~/.cache/go-build 47 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} 48 restore-keys: | 49 ${{ runner.os }}-go- 50 51 - name: Login to DockerHub 52 uses: docker/login-action@v1 53 with: 54 username: ${{ secrets.DOCKERHUB_USERNAME }} 55 password: ${{ secrets.DOCKERHUB_TOKEN }} 56 57 - name: Get github sha 58 id: github_sha 59 run: echo "::set-output name=sha_short::${GITHUB_SHA::7}" 60 61 - name: Run GoReleaser 62 uses: goreleaser/goreleaser-action@v4 63 with: 64 distribution: goreleaser-pro 65 version: latest 66 args: release -f ./goreleaser_files/.goreleaser-docker-build-logs-server.yml 67 env: 68 GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }} 69 GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} 70 DOCKER_BUILDX_BUILDER: "${{ steps.buildx.outputs.name }}" 71 DOCKER_BUILDX_CACHE_FROM: "type=gha" 72 DOCKER_BUILDX_CACHE_TO: "type=gha,mode=max" 73 ALPINE_IMAGE: ${{ env.ALPINE_IMAGE }} 74 BUSYBOX_IMAGE: ${{ env.BUSYBOX_IMAGE }} 75 76 - name: Push README to Dockerhub 77 uses: christian-korneck/update-container-description-action@v1 78 env: 79 DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }} 80 DOCKER_PASS: ${{ secrets.DOCKERHUB_TOKEN }} 81 with: 82 destination_container_repo: kubeshop/testkube-logs-server 83 provider: dockerhub 84 short_description: "Testkube CLI Docker image" 85 readme_file: "./README.md"