Skip to content

Commit

Permalink
test uniform deployment on alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
WanjikuMac committed Oct 26, 2023
1 parent 13023aa commit 3d6ff01
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/alpha-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Alpha Deploy

on:
push:
tags:
- v*-alpha
branches:
- fix/deployment_alpha_prod
# tags:
# - v*-alpha

env:
PROJECT_ID: ${{ secrets.GCE_PROJECT }}
Expand Down Expand Up @@ -44,17 +46,17 @@ jobs:
- name: Build
run: |
echo '${{ secrets.RELEASES_SECRETS }}' >> config/releases.exs
docker build --tag "gcr.io/duncan-openc2-plugfest/twinklyhaha:${GITHUB_REF##*/}" .
docker build --tag "gcr.io/duncan-openc2-plugfest/twinklyhaha:${GITHUB_REF_NAME}" .
# Push the Docker image to Google Container Registry
- name: Publish
run: |-
docker push "gcr.io/duncan-openc2-plugfest/twinklyhaha:${GITHUB_REF##*/}"
docker push "gcr.io/duncan-openc2-plugfest/twinklyhaha:${GITHUB_REF_NAME}"
- name: Deploy
- name: Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v0
with:
service: twinklyhaha-alpha
region: us-east4
image: "gcr.io/duncan-openc2-plugfest/twinklyhaha:${GITHUB_REF##*/}"
image: "gcr.io/duncan-openc2-plugfest/twinklyhaha:${{ github.ref_name }}"

0 comments on commit 3d6ff01

Please sign in to comment.