Skip to content

Commit

Permalink
fix: CRDs automation
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweaver87 committed Jun 7, 2024
1 parent ff284ee commit f9e4f86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/template-update-crds-go-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ steps.go_version.outputs.go_version }}
- name: setup proxy credentials
run: |
cat <<EOF ~/.netrc
${{secrets.GOPROXY_CREDS}}
EOF
- name: update go.mod
env:
GOPROXY: https://gomod.traefiklabs.tech,https://proxy.golang.org,direct
run: |
sed -i -e "s|github.com/traefik/hub-crds .*|github.com/traefik/hub-crds ${{ inputs.CRDS_VERSION }}|g" go.mod
go mod tidy
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-crds.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 🏗️ Update CRDs
on:
pull_request:
workflow_dispatch:
tag:
description: 'Execute scenario on specified tag value'
Expand Down Expand Up @@ -27,7 +28,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: traefik/traefik-helm-chart
ref: main
ref: master
token: ${{ secrets.GH_TOKEN }}
path: ${{ github.workspace }}/traefik-helm-chart
- name: copy CRDs
Expand Down

0 comments on commit f9e4f86

Please sign in to comment.