fix: CoreWeave Object Storage should use virtual style addressing (#2) #10
This file contains hidden or 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 | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: | |
| - "coreweave" | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| go-version: | |
| - 1.22.x | |
| - 1.21.x | |
| - 1.20.x | |
| os: | |
| - macos | |
| - ubuntu | |
| - windows | |
| name: build (${{ matrix.os }}/go-${{ matrix.go-version }}) | |
| runs-on: ${{ matrix.os }}-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-go@v2 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - run: make build | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: | |
| - 1.22.x | |
| - 1.21.x | |
| - 1.20.x | |
| os: | |
| - macos | |
| - ubuntu | |
| - windows | |
| name: test (${{ matrix.os }}/go-${{ matrix.go-version }}) | |
| runs-on: ${{ matrix.os }}-latest | |
| services: | |
| minio: | |
| image: ${{ (matrix.os == 'ubuntu') && 'bitnamilegacy/minio:2023.7.18' || ''}} | |
| ports: | |
| - 45677:9000 | |
| options: >- | |
| --health-cmd "curl -I http://localhost:9000/minio/health/live -s" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| MINIO_ROOT_USER: minioadmin | |
| MINIO_ROOT_PASSWORD: minioadmin | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-go@v2 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - run: make test | |
| env: | |
| S5CMD_TEST_ENDPOINT_URL: ${{ (matrix.os == 'ubuntu') && 'http://localhost:45677' || '' }} | |
| qa: | |
| strategy: | |
| matrix: | |
| go-version: | |
| - 1.22.x | |
| - 1.21.x | |
| - 1.20.x | |
| os: | |
| - ubuntu | |
| runs-on: ${{ matrix.os }}-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-go@v2 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - run: make bootstrap | |
| - run: make check | |
| push_dirty_tag: | |
| runs-on: ubuntu-latest | |
| needs: [qa, test, build] | |
| permissions: | |
| contents: write | |
| actions: write | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - | |
| name: Get tag | |
| id: get_tag | |
| run: | | |
| git remote add upstream https://github.com/peak/s5cmd.git | |
| git fetch --tags upstream | |
| VERSION=$(git describe --tags --exclude '*-*' --abbrev=0) | |
| echo "VERSION=$VERSION" >> $GITHUB_ENV | |
| echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| echo "short_sha=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_OUTPUT | |
| - | |
| name: Push dirty tag | |
| id: push_dirty_tag | |
| run: | | |
| git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" | |
| git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" | |
| git tag -a "${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}" -m "Release ${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}" | |
| git push origin "${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}" | |
| - | |
| name: Trigger GoReleaser | |
| run: | | |
| curl -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | |
| https://api.github.com/repos/${{ github.repository }}/actions/workflows/goreleaser.yml/dispatches \ | |
| -d '{"ref":"${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}"}' | |
| - | |
| name: Trigger Docker Build | |
| run: | | |
| curl -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | |
| https://api.github.com/repos/${{ github.repository }}/actions/workflows/docker.yml/dispatches \ | |
| -d '{"ref":"${{ steps.get_tag.outputs.version }}-${{ steps.get_tag.outputs.short_sha }}"}' |