Skip to content

Commit

Permalink
fix: .goreleaser rollback to unique file (#2719)
Browse files Browse the repository at this point in the history
* call free space script

Signed-off-by: Thomas Poignant <[email protected]>

* rollback goreleaser script

Signed-off-by: Thomas Poignant <[email protected]>

* check only 1 goreleaser file

Signed-off-by: Thomas Poignant <[email protected]>

---------

Signed-off-by: Thomas Poignant <[email protected]>
  • Loading branch information
thomaspoignant authored Nov 23, 2024
1 parent 7f0d722 commit afdef62
Show file tree
Hide file tree
Showing 5 changed files with 333 additions and 494 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,6 @@ jobs:
version: latest
args: check --config .goreleaser.yaml

- name: Run GoReleaser .goreleaser-cli.yaml check
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: check --config .goreleaser-cli.yaml

- name: Run GoReleaser .goreleaser-editor.yaml check
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: check --config .goreleaser-editor.yaml

integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
Expand Down
94 changes: 2 additions & 92 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
exit 1
fi
integration-tests:
name: Integration Tests
needs:
Expand All @@ -36,7 +35,6 @@ jobs:
maven-version: 3.8.2
- run: make vendor
- run: make provider-tests

goreleaser:
needs: integration-tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -72,82 +70,8 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: ~> v2
args: release --clean --timeout 60m --config .goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

goreleaser-lint:
needs: integration-tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch all tags
run: git fetch --force --tags

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true

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

- name: Docker login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: ~> v2
args: release --clean --timeout 60m --config .goreleaser-cli.yaml
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

goreleaser-editor:
needs: integration-tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch all tags
run: git fetch --force --tags

- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true

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

- name: Docker login
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: ~> v2
args: release --clean --timeout 60m --config .goreleaser-editor.yaml
version: latest
args: release --clean --timeout 60m
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

Expand All @@ -156,8 +80,6 @@ jobs:
name: Upload dockerhub readme
needs:
- goreleaser
- goreleaser-editor
- goreleaser-lint
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -187,8 +109,6 @@ jobs:
name: Upload dockerhub readme
needs:
- goreleaser
- goreleaser-editor
- goreleaser-lint
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -208,8 +128,6 @@ jobs:
name: Upload dockerhub readme
needs:
- goreleaser
- goreleaser-editor
- goreleaser-lint
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -229,8 +147,6 @@ jobs:
name: Upload dockerhub readme
needs:
- goreleaser
- goreleaser-editor
- goreleaser-lint
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -266,8 +182,6 @@ jobs:
name: Create new documentation tag
needs:
- goreleaser
- goreleaser-editor
- goreleaser-lint
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -329,8 +243,6 @@ jobs:
name: Bump Relay Proxy Helm Chart appVersion
needs:
- goreleaser
- goreleaser-editor
- goreleaser-lint
env:
CHART_YAML_FILE_LOCATION: cmd/relayproxy/helm-charts/relay-proxy/Chart.yaml
MAIN_BRANCH_NAME: main
Expand Down Expand Up @@ -385,8 +297,6 @@ jobs:
name: Release jsonschema
needs:
- goreleaser
- goreleaser-editor
- goreleaser-lint
env:
SCHEMA_LOCATION: .schema/flag-schema.json
MAIN_BRANCH_NAME: main
Expand Down
Loading

0 comments on commit afdef62

Please sign in to comment.