tools: add new update-docker-tag.sh, add to PR checklist, update upgrade guide (#171)

Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
This commit is contained in:
Robert LinandStephen Gutekanst authored and GitHub committed 2020-11-03 20:58:01 +08:00
1 parent ba1cda568d
commit 8d03ec2173
8 files changed
+110 -135

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
name: Update tags
on:
workflow_dispatch:
inputs:
semver:
required: true
branch:
required: true
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.14'
# generate update
- name: Pin tags to ${{ github.event.inputs.semver }}
run: tools/update-docker-tags.sh "${{ github.event.inputs.semver }}"
- name: Open pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: ${{ github.event.inputs.branch }}
branch: upgrade-${{ github.event.inputs.branch }}
title: 'Upgrade ${{ github.event.inputs.branch }} to ${{ github.event.inputs.semver }}'
body: |
Upgrade the `${{ github.event.inputs.branch }}` branch's Sourcegraph Docker images to enforce constraints `${{ github.event.inputs.semver }}`.
This pull request was generate by [this run](https://github.com/sourcegraph/deploy-sourcegraph/actions/runs/${{ github.run_id }})
commit-message: 'Upgrade to Sourcegraph ${{ github.event.inputs.semver }}'