Skip to content

Commit

Permalink
chore: bring gha release pipeline into line with latest iamges
Browse files Browse the repository at this point in the history
  • Loading branch information
rawlingsj committed Jun 30, 2021
1 parent ecc1e8c commit d4c5d8c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jenkins-x-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: jx-variables
uses: docker://gcr.io/jenkinsxio/jx-boot:3.1.170
uses: docker://ghcr.io/jenkins-x/jx-boot:3.2.157
with:
args: gitops variables
entrypoint: jx
Expand Down
46 changes: 27 additions & 19 deletions .github/workflows/jenkins-x-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,32 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
fetch-depth: "0"
fetch-depth: 0
token: ${{ secrets.GIT_BOT_TOKEN }}
- uses: fusion-engineering/setup-git-credentials@v2
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- uses: fregante/setup-git-user@v1

- name: prep
id: prep
uses: jenkins-x-plugins/[email protected]
with:
credentials: ${{ format('https://x-access-token:{0}@github.com/', secrets.GIT_BOT_TOKEN) }}
- id: prep
name: Set the release version
uses: docker://gcr.io/jenkinsxio/jx-release-version:1.0.46
with:
args: -c "echo ::set-output name=version::$(jx-release-version)"
entrypoint: bash
tag: true
github-token: ${{ secrets.GIT_BOT_TOKEN }}

- env:
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
VERSION: ${{ steps.prep.outputs.version}}
VERSION: ${{ steps.prep.outputs.version }}
name: release-binary
uses: docker://golang:1.15
with:
args: -c "make release"
entrypoint: bash
- env:
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
VERSION: ${{ steps.prep.outputs.version}}
VERSION: ${{ steps.prep.outputs.version }}
name: chart-docs
uses: docker://jnorwood/helm-docs:v1.4.0
with:
Expand All @@ -37,15 +38,15 @@ jobs:
- env:
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
REPO_NAME: ${{ github.event.repository.name }}
VERSION: ${{ steps.prep.outputs.version}}
VERSION: ${{ steps.prep.outputs.version }}
name: changelog
uses: docker://gcr.io/jenkinsxio/jx-changelog:0.0.30
uses: docker://ghcr.io/jenkins-x/jx-changelog:0.0.43
with:
entrypoint: .github/workflows/jenkins-x/changelog.sh
- env:
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
REPOSITORY: ${{ github.repository }}
VERSION: ${{ steps.prep.outputs.version}}
VERSION: ${{ steps.prep.outputs.version }}
name: upload-binaries
uses: docker://goreleaser/goreleaser:v0.155.0
with:
Expand All @@ -72,18 +73,25 @@ jobs:
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ steps.prep.outputs.version }}
- env:
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
JX_REPOSITORY_USERNAME: jenkins-x-bot-test
VERSION: ${{ steps.prep.outputs.version }}
name: release-chart
uses: docker://ghcr.io/jenkins-x/jx-boot:3.1.284
with:
entrypoint: .github/workflows/jenkins-x/release-chart.sh
- env:
GIT_USERNAME: jenkins-x-bot-test
GITHUB_TOKEN: ${{ secrets.GIT_BOT_TOKEN }}
VERSION: ${{ steps.prep.outputs.version}}
VERSION: ${{ steps.prep.outputs.version }}
XDG_CONFIG_HOME: /github/home/.config
name: promote-release
uses: docker://gcr.io/jenkinsxio/jx-updatebot:0.0.49
uses: docker://ghcr.io/jenkins-x/jx-updatebot:0.0.84
with:
entrypoint: jx-updatebot
args: pr --git-credentials
"on":
push:
branches:
- main
- master

0 comments on commit d4c5d8c

Please sign in to comment.