Bump github.com/gophercloud/gophercloud from 1.14.0 to 1.14.1 (#148) #121
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
name: Publish | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-master: | |
permissions: | |
id-token: write | |
contents: read | |
runs-on: elisa-normal | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: elisa-actions/setup-go-and-mage@v1 | |
- name: Ensure go.mod and go.sum are up to date | |
run: mage go:tidyAndVerify | |
- name: Lint | |
run: mage go:lint | |
- name: Run license check | |
run: mage go:licenses | |
- name: Build binary | |
run: mage go:build | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Google Artifact Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: europe-north1-docker.pkg.dev | |
username: _json_key | |
password: ${{ secrets.GAR_JSON_KEY }} | |
- name: Build image | |
env: | |
DOCKER_IMAGE_TAGS: latest sha-${{ github.sha }} | |
run: mage docker:build | |
- name: Push image | |
run: mage docker:push | |
- name: Update batch | |
env: | |
GH_TOKEN: ${{ secrets.DOPS_SRE_PAT }} | |
GH_ORG: elisasre | |
GH_REPO: batch | |
REPLACE_REGEX: (europe-north1-docker.pkg.dev/sose-sre-5737/sre-public/kops-autoscaler-openstack:sha-)(.*) | |
COMMIT_TEXT: update kops-autoscaler-openstack image to {{.SHA}} | |
FILE_PATH: templates/go/core/kops-autoscaler/latest.yaml | |
run: | | |
curl -s https://${{ secrets.SRE_MEDIA_URL }}/repo-updater/repo-updater -o repo-updater && chmod +x repo-updater | |
./repo-updater publish | |
- name: Notify failure | |
if: failure() | |
env: | |
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} | |
MATTERMOST_TEXT: "${{ github.repository }} [${{ github.event.ref }}](${{ github.event.repository.html_url }}/tree/${{ github.event.ref }}) build failed." | |
run: | | |
send-to-mattermost |