Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rename workflows #223

Merged
merged 2 commits into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Publish and Deploy Image
name: Continuous Deployment to Infra

on:
push:
branches: [ "main" ]
release:
types: [published, edited]
workflow_dispatch:
types: [published, edited, prereleased, released]
samika98 marked this conversation as resolved.
Show resolved Hide resolved

env:
AWS_REGION: ${{ secrets.AWS_REGION }}
Expand Down Expand Up @@ -43,7 +42,7 @@ jobs:
# Use the release tag to deploy, if one is available.
DEPLOY_TAG=$RELEASE_TAG
fi
# make SHA="${{ github.SHA }}" SHA_TAG="$SHA_TAG" RELEASE_TAG="$RELEASE_TAG" publish-docker
make SHA="${{ github.SHA }}" SHA_TAG="$SHA_TAG" RELEASE_TAG="$RELEASE_TAG" publish-docker
echo "Deploy tag:"
echo ${DEPLOY_TAG}
echo "deploy_tag=${DEPLOY_TAG}" >> $GITHUB_OUTPUT
Expand All @@ -56,19 +55,20 @@ jobs:
-
uses: actions/checkout@v3
-
# TODO: Uncomment and remove echo
name: Schedule k8s deployment
run: |
echo "Workflow triggered by: ${{ github.event_name }}"
if [[ "${{github.event_name}}" == "release" ]]; then
if [[ "${{ github.event_name }}" == "release" ]]; then
echo "Release action: ${{ github.event.action }}"
if [${{ github.event.release.prerelease }}]; then
if [[ "${{ github.event.action }}" == "prereleased" ]]; then
DEPLOY_ENV="tnet"
else
elif [[ "${{ github.event.action }}" == "released" ]]; then
DEPLOY_ENV="prod"
fi
else
DEPLOY_ENV="qa"
fi
# make DEPLOY_ENV="$DEPLOY_ENV" DEPLOY_TAG=${{ needs.publish.outputs.deploy_tag }} schedule-k8s-deployment
echo "DEPLOY_ENV is $DEPLOY_ENV"
if [[ -n "$DEPLOY_ENV" ]]; then
make DEPLOY_ENV="$DEPLOY_ENV" DEPLOY_TAG=${{ needs.publish.outputs.deploy_tag }} schedule-k8s-deployment
fi
echo "DEPLOY_ENV is $DEPLOY_ENV"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Durable Infra
name: Manual Deployment to Infra

on:
workflow_dispatch:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Rust Build and Test

on:
push:
Expand Down