-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update * GitHub actions to address deprecations (node 12-16, set-output, save-state) * Dockefile * developer dependencies (Depfile)
- Loading branch information
Showing
8 changed files
with
325 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,13 +33,13 @@ jobs: | |
token: ${{ secrets.VAULT_TOKEN }} | ||
secrets: | | ||
kv/data/github "SSH_PRIVATE_KEY" | SSH_PRIVATE_KEY; | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Setup caching | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
|
@@ -71,7 +71,7 @@ jobs: | |
if: github.event_name == 'push' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') ) | ||
steps: | ||
- name: Read Configuration | ||
uses: hashicorp/[email protected].1 | ||
uses: hashicorp/[email protected].3 | ||
id: vault | ||
with: | ||
url: ${{ env.VAULT_ADDR }} | ||
|
@@ -80,11 +80,11 @@ jobs: | |
kv/data/github "SSH_PRIVATE_KEY" | SSH_PRIVATE_KEY; | ||
kv/data/github "USERNAME" | DOCKER_USERNAME; | ||
kv/data/github "DOCKER_PUSH_TOKEN" | DOCKER_PASSWORD; | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Setup caching | ||
|
@@ -95,7 +95,7 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Login to GitHub Packages Docker Registry | ||
uses: docker/login-action@v1 | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: https://ghcr.io | ||
username: ${{ env.DOCKER_USERNAME }} | ||
|
@@ -122,22 +122,22 @@ jobs: | |
# Only release when ref is a tag | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Setup caching | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Read Configuration | ||
uses: hashicorp/[email protected].1 | ||
uses: hashicorp/[email protected].3 | ||
id: vault | ||
with: | ||
url: ${{ env.VAULT_ADDR }} | ||
|
@@ -166,11 +166,11 @@ jobs: | |
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Read Configuration | ||
uses: hashicorp/[email protected].1 | ||
uses: hashicorp/[email protected].3 | ||
id: vault | ||
with: | ||
url: ${{ env.VAULT_ADDR }} | ||
|
@@ -182,7 +182,7 @@ jobs: | |
shell: bash | ||
run: | | ||
hub release download "${GITHUB_REF#refs/tags/}" -i '*windows_x86_64*.zip' | ||
printf "::set-output name=zip::%s\n" *.zip | ||
printf "zip=%s\n" *.zip >> $GITHUB_OUTPUT | ||
unzip -o *.zip && rm -v *.zip | ||
env: | ||
GITHUB_TOKEN: ${{ steps.vault.outputs.ROOT_TOKEN }} | ||
|
@@ -201,7 +201,7 @@ jobs: | |
run: | | ||
mkdir -p build | ||
msi="$(basename "$ZIP_FILE" ".zip").msi" | ||
printf "::set-output name=msi::%s\n" "$msi" | ||
printf "msi=${msi}" >> $GITHUB_OUTPUT | ||
go-msi make --arch amd64 --msi "$PWD/$msi" --out "$PWD/build" --version "${GITHUB_REF#refs/tags/}" | ||
- name: Upload MSI | ||
shell: bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.