Skip to content

TMP trigger deploy #104

TMP trigger deploy

TMP trigger deploy #104

Workflow file for this run

name: publish-deploy
on:
push:
branches: [NAN-fix-docker-tharvik]
jobs:
publish-github-container:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
outputs:
digest: ${{ steps.build.outputs.digest }}
steps:
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/epfml/disco
tags: |
type=semver,pattern={{version}}
type=edge,branch=NAN-fix-docker-tharvik
- uses: docker/build-push-action@v6
id: build
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
deploy-server:
needs: [publish-github-container]
if: github.ref_type == 'branch'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v2
with:
project_id: disco-367212
workload_identity_provider: projects/905419434797/locations/global/workloadIdentityPools/github/providers/disco
- uses: google-github-actions/deploy-cloudrun@v2
with:
service: disco
region: europe-west6
image: europe-west6-docker.pkg.dev/disco-367212/github/epfml/disco@${{ needs.publish-github-container.outputs.digest }}