Skip to content

Commit

Permalink
fix: rename workflows (#223)
Browse files Browse the repository at this point in the history
* fix: rename workflows

* chore: add release created type to cd workflow
  • Loading branch information
smrz2001 authored Jan 20, 2024
1 parent 0e5fbd3 commit 9098c3f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/publish.yml → .github/workflows/cd-to-infra.yml
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: [created, published, edited, prereleased, released]

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"
File renamed without changes.
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

0 comments on commit 9098c3f

Please sign in to comment.