Skip to content

Commit

Permalink
Release v0.4.0 #minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ErwinsExpertise authored Jan 19, 2022
1 parent 9791a50 commit e32a6d5
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16
-
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@v2
Expand All @@ -63,12 +70,21 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
-
name: Clear
if: always()
run: |
rm -f ${HOME}/.docker/config.json
release:
runs-on: ubuntu-latest
needs: ["goreleaser", "create-tag"]
name: Release Notification
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- run: |
echo "{\"text\":\"Vultr-CSI : Release https://github.com/${{ github.repository }}/releases/tag/${{ needs.create-tag.outputs.new_tag }} \"}" > mattermost.json
- uses: mattermost/action-mattermost-notify@master
Expand Down
25 changes: 24 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,24 @@ before:
- go mod download
- go generate ./...
builds:
- skip: true
-
env:
- CGO_ENABLED=0

binary: csi-vultr-plugin

flags:
- -trimpath #removes all file system paths from the compiled executable

goos:
- linux
- windows
- darwin

goarch:
- amd64
- arm64


checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
Expand All @@ -19,6 +36,12 @@ changelog:
- '^docs:'
- '^test:'

dockers:
- dockerfile: Dockerfile
image_templates:
- "vultr/vultr-csi:release"
- "vultr/vultr-csi:{{ .Tag }}"

release:
github:
owner: Vultr
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ spec:
- name: registration-dir
mountPath: /registration/
- name: csi-vultr-plugin
image: vultr/vultr-csi:v0.3.0
image: vultr/vultr-csi:v0.4.0
args:
- "--endpoint=$(CSI_ENDPOINT)"
env:
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/v0.4.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ spec:
- name: registration-dir
mountPath: /registration/
- name: csi-vultr-plugin
image: vultr/vultr-csi:v0.3.0
image: vultr/vultr-csi:v0.4.0
args:
- "--endpoint=$(CSI_ENDPOINT)"
env:
Expand Down

0 comments on commit e32a6d5

Please sign in to comment.