add runs-on to job
This commit is contained in:
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@@ -5,27 +5,29 @@ on: workflow_dispatch
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: 'read'
|
contents: 'read'
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- id: 'Checkout'
|
- name: 'Checkout'
|
||||||
uses: 'actions/checkout@v3'
|
uses: 'actions/checkout@v3'
|
||||||
|
|
||||||
- id: 'Google Cloud Authentication'
|
- name: 'Google Cloud Authentication'
|
||||||
uses: 'google-github-actions/auth@v1'
|
uses: 'google-github-actions/auth@v1'
|
||||||
with:
|
with:
|
||||||
credentials_json: ${{ secrets.CLOUD_CREDENTIALS }}
|
credentials_json: ${{ secrets.CLOUD_CREDENTIALS }}
|
||||||
|
|
||||||
- id: 'Deploy Cloud Function'
|
- name: 'Deploy Cloud Function'
|
||||||
uses: 'google-github-actions/deploy-cloud-functions@v1'
|
uses: 'google-github-actions/deploy-cloud-functions@v1'
|
||||||
with:
|
with:
|
||||||
description: 'Ping selected group of members on mattermost when coffee is mentioned'
|
description: 'Ping selected group of members on mattermost when coffee is mentioned'
|
||||||
name: 'coffee2'
|
name: 'Coffee'
|
||||||
runtime: 'go119'
|
runtime: 'go119'
|
||||||
memory_mb: 1
|
memory_mb: 128
|
||||||
region: 'europe-west1'
|
region: 'europe-west1'
|
||||||
|
|
||||||
- id: 'Test #1'
|
- name: 'Test #1'
|
||||||
run: 'echo "This should fail (no token)"; "curl "${{ steps.deploy.outputs.url }}" || true'
|
run: 'echo "This should fail (no token)"; "curl "${{ steps.deploy.outputs.url }}" || true'
|
||||||
|
|||||||
Reference in New Issue
Block a user