Files
mattermost-coffee-ping/.github/workflows/deploy.yml
dependabot[bot] 36240ebccf Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 16:02:48 +00:00

44 lines
1.1 KiB
YAML

name: Deploy Google Cloud Function
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Google Cloud Authentication
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.CLOUD_CREDENTIALS }}
- name: Deploy Cloud Function
uses: google-github-actions/deploy-cloud-functions@v1
with:
name: coffee
description: Ping selected group of members on mattermost when coffee is mentioned
entry_point: Coffee
source_dir: src
env_vars: >-
PROJECT_ID=rising-city-366608,
COLON_SEPARATED_TOKEN_WHITELIST=${{ secrets.COLON_SEPARATED_TOKEN_WHITELIST }},
GITHUB_URL=${{github.server_url}}/${{github.repository}}
secret_environment_variables: >-
EGROUPS_USERNAME=projects/74365131111/secrets/EGROUPS_USERNAME,
EGROUPS_PASSWORD=projects/74365131111/secrets/EGROUPS_PASSWORD
runtime: go119
memory_mb: 128
region: europe-west1