Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Bump golang.org/x/oauth2 from 0.16.0 to 0.17.0 #63

Bump golang.org/x/oauth2 from 0.16.0 to 0.17.0

Bump golang.org/x/oauth2 from 0.16.0 to 0.17.0 #63

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
tags:
- '*'
pull_request:
branches: [ "main" ]
env:
CGO_ENABLED: 0
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: write
pull-requests: write
security-events: write
statuses: write
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
- name: Test
run: |
go mod download
go test -cover -vet all
- name: Build
run: |
go build -a -ldflags "-X main.version=${GITHUB_REF_NAME} -X main.rev=${GITHUB_SHA}"
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: nytimes/drone-openapi
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Login to Docker Hub
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
# dry run, don't push image for pull_request event.
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Slack notification
uses: slackapi/[email protected]
if: ${{ github.event_name != 'pull_request' }}
with:
payload: |
{
"text": "GitHub Actions Build Result: ${{ job.status }}\n triggered_by: ${{ github.actor }}\n job url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\n commit url: ${{ github.event.head_commit.url }}"
}
env:
# webhook for #dv-cdp-alerts
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}