Skip to content

Commit

Permalink
Upgrade GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Mar 6, 2024
1 parent 88c6cc1 commit f321ae9
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 68 deletions.
110 changes: 55 additions & 55 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,66 @@ name: 'Bug report'
description: 'File a bug report'
labels: ['bug']
body:
- type: 'markdown'
attributes:
value: |-
Thank you for filing an bug. Please complete the form below so we can triage, reproduce, and fix your issue.
- type: 'markdown'
attributes:
value: |-
Thank you for filing an bug. Please complete the form below so we can triage, reproduce, and fix your issue.
- id: 'tldr'
type: 'textarea'
attributes:
label: 'TL;DR'
description: 'Describe the bug in 1-2 sentences.'
validations:
required: true
- id: 'tldr'
type: 'textarea'
attributes:
label: 'TL;DR'
description: 'Describe the bug in 1-2 sentences.'
validations:
required: true

- id: 'expected_behavior'
type: 'textarea'
attributes:
label: 'Expected behavior'
description: 'What did you expect to happen?'
- id: 'expected_behavior'
type: 'textarea'
attributes:
label: 'Expected behavior'
description: 'What did you expect to happen?'

- id: 'observed_behavior'
type: 'textarea'
attributes:
label: 'Observed behavior'
description: 'What happened instead?'
- id: 'observed_behavior'
type: 'textarea'
attributes:
label: 'Observed behavior'
description: 'What happened instead?'

- id: 'log_output'
type: 'textarea'
attributes:
label: 'Debug log output'
description: 'Paste the debug log output here. See https://github.com/GoogleCloudPlatform/gcr-cleaner#Debugging for more information.'
render: 'text'
- id: 'mode'
type: 'dropdown'
attributes:
label: 'How are you running gcr-cleaner?'
options:
- 'CLI'
- 'Server'
validations:
required: true
- id: 'log_output'
type: 'textarea'
attributes:
label: 'Debug log output'
description: 'Paste the debug log output here. See https://github.com/GoogleCloudPlatform/gcr-cleaner#Debugging for more information.'
render: 'text'
- id: 'mode'
type: 'dropdown'
attributes:
label: 'How are you running gcr-cleaner?'
options:
- 'CLI'
- 'Server'
validations:
required: true
- id: 'version'

- id: 'version'
type: 'input'
attributes:
label: 'gcr-cleaner version'
description: 'Version of gcr-cleaner. If using the CLI, run `gcr-cleaner -v`. If using the server, check the debug logs or provide the container SHA'
validations:
required: true
type: 'input'
attributes:
label: 'gcr-cleaner version'
description: 'Version of gcr-cleaner. If using the CLI, run `gcr-cleaner -v`. If using the server, check the debug logs or provide the container SHA'
validations:
required: true
- id: 'environment'

- id: 'environment'
type: 'textarea'
attributes:
label: 'Environment'
description: 'Provide as much information about your environment as possible. If you are using gcr-cleaner as a CLI, include local operating system information. If you are running gcr-cleaner as a service, describe the deployment topology, permissions, and runtime.'
validations:
required: true
type: 'textarea'
attributes:
label: 'Environment'
description: 'Provide as much information about your environment as possible. If you are using gcr-cleaner as a CLI, include local operating system information. If you are running gcr-cleaner as a service, describe the deployment topology, permissions, and runtime.'
validations:
required: true
- id: 'additional'

- id: 'additional'
type: 'textarea'
attributes:
label: 'Additional information'
type: 'textarea'
attributes:
label: 'Additional information'
description: 'Is there anything else you think we should know?'
description: 'Is there anything else you think we should know?'
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,41 @@ jobs:
release:
runs-on: 'ubuntu-latest'
steps:
- uses: 'docker/setup-qemu-action@v2'
- uses: 'docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3' # ratchet:docker/setup-qemu-action@v3

- uses: 'actions/checkout@v3'
- uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
with:
fetch-depth: 0

- uses: 'actions/setup-go@v3'
- uses: 'actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491' # ratchet:actions/setup-go@v5
with:
go-version-file: 'go.mod'

- uses: 'docker/login-action@v2'
- uses: 'docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d' # ratchet:docker/login-action@v3
with:
registry: 'asia-docker.pkg.dev'
username: '_json_key'
password: '${{ secrets.GOOGLE_CREDENTIALS }}'

- uses: 'docker/login-action@v2'
- uses: 'docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d' # ratchet:docker/login-action@v3
with:
registry: 'europe-docker.pkg.dev'
username: '_json_key'
password: '${{ secrets.GOOGLE_CREDENTIALS }}'

- uses: 'docker/login-action@v2'
- uses: 'docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d' # ratchet:docker/login-action@v3
with:
registry: 'us-docker.pkg.dev'
username: '_json_key'
password: '${{ secrets.GOOGLE_CREDENTIALS }}'

- id: 'import_gpg'
uses: 'crazy-max/ghaction-import-gpg@v5'
uses: 'crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4' # ratchet:crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: '${{ secrets.GPG_PRIVATE_KEY }}'
passphrase: '${{ secrets.GPG_PASSPHRASE }}'

- uses: 'goreleaser/goreleaser-action@v3'
- uses: 'goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8' # ratchet:goreleaser/goreleaser-action@v5
with:
version: 'latest'
args: 'release --rm-dist'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
runs-on: 'ubuntu-latest'

steps:
- uses: 'actions/checkout@v3'
- uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4

- uses: 'actions/setup-go@v3'
with:
go-version-file: 'go.mod'
- uses: 'actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491' # ratchet:actions/setup-go@v5
with:
go-version-file: 'go.mod'

- run: 'make test'
- run: 'make test'

0 comments on commit f321ae9

Please sign in to comment.