Skip to content

Commit

Permalink
some release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Jul 26, 2023
1 parent 05af74e commit 10ea613
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ jobs:

-
name: Run GoReleaser Cross
run: ./backend/build/bk-release.sh release --rm-dist -f ./dashboard/goreleaser-next.yml
run: ./backend/build/bk-release.sh release --rm-dist -f ./backend/.goreleaser-next.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UI_BUNDLE_URL: "dev"
# The "id-token: write" permission for the OIDC will set the ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN
# environment variables. Since we are running goreleaser-cross from a Docker image we need to pass those to the script and the container.
# See: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#updating-your-actions-for-oidc
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ jobs:
LOGIN_LOCALE_SELECTOR: false
-
name: Run GoReleaser Cross
run: ./backend/build/bk-release.sh release --rm-dist -f ./dashboard/goreleaser.yml
run: ./backend/build/bk-release.sh release --rm-dist -f ./backend/.goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UI_BUNDLE_URL: ""
# The "id-token: write" permission for the OIDC will set the ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN
# environment variables. Since we are running goreleaser-cross from a Docker image we need to pass those to the script and the container.
# See: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#updating-your-actions-for-oidc
Expand Down
6 changes: 3 additions & 3 deletions backend/.goreleaser-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ dockers:
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{ incminor .Version }}-next"
- "--label=epinio.io.ui.source=dev"
- "--label=epinio.io.ui.source={{.Env.UI_BUNDLE_URL}}"
- "--label=org.opencontainers.image.source=https://github.com/epinio/ui"
- "--build-arg=DIST_BINARY=epinio-ui"
- "--platform=linux/amd64"
Expand All @@ -119,7 +119,7 @@ dockers:
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{ incminor .Version }}-next"
- "--label=epinio.io.ui.source=dev"
- "--label=epinio.io.ui.source={{.Env.UI_BUNDLE_URL}}"
- "--label=org.opencontainers.image.source=https://github.com/epinio/ui"
- "--build-arg=DIST_BINARY=epinio-ui"
- "--platform=linux/arm64/v8"
Expand All @@ -146,7 +146,7 @@ dockers:
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{ incminor .Version }}-next"
- "--label=epinio.io.ui.source=dev"
- "--label=epinio.io.ui.source={{.Env.UI_BUNDLE_URL}}"
- "--label=org.opencontainers.image.source=https://github.com/epinio/ui"
- "--build-arg=DIST_BINARY=epinio-ui"
- "--platform=linux/s390x"
Expand Down
3 changes: 3 additions & 0 deletions backend/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ dockers:
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=epinio.io.ui.source={{.Env.UI_BUNDLE_URL}}"
- "--label=org.opencontainers.image.source=https://github.com/epinio/ui"
- "--build-arg=DIST_BINARY=epinio-ui"
- "--platform=linux/amd64"
Expand Down Expand Up @@ -136,6 +137,7 @@ dockers:
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=epinio.io.ui.source={{.Env.UI_BUNDLE_URL}}"
- "--label=org.opencontainers.image.source=https://github.com/epinio/ui"
- "--build-arg=DIST_BINARY=epinio-ui"
- "--platform=linux/arm64/v8"
Expand Down Expand Up @@ -177,6 +179,7 @@ dockers:
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=epinio.io.ui.source={{.Env.UI_BUNDLE_URL}}"
- "--label=org.opencontainers.image.source=https://github.com/epinio/ui"
- "--build-arg=DIST_BINARY=epinio-ui"
- "--platform=linux/s390x"
Expand Down

0 comments on commit 10ea613

Please sign in to comment.