Skip to content

Commit

Permalink
ci: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
killmenot committed Apr 16, 2024
1 parent b8b2c66 commit 212b519
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 53 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy

on:
release:
types: [prereleased, released]

concurrency:
group: cd-${{ github.ref }}
cancel-in-progress: false

# env:
# REPO_URL: ghcr.io
# REPO_PROJECT: swiftdrivecorp
# REPO_CONFIG: infra-deploy

# ghcr.io/swiftdrivecorp/frontend-admin-staging:123456
# ghcr.io/swiftdrivecorp/frontend-admin-prodution:123456

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: github
run: echo toJSON(${{ github }})
- name: GITHUB_EVENT_NAME
run: echo $GITHUB_EVENT_NAME

# - id: extract
# name: Extract name
# run: echo "tf-workspace=$([[ $GITHUB_REF_NAME == 'main' ]] && echo 'qa2' || ( [[ $GITHUB_EVENT_NAME == 'release' ]] && ( [[ '${{ github.event.action }}' == 'prereleased' ]] && echo 'stage' || ( [[ '${{ github.event.action }}' == 'released' ]] && echo 'prod' || echo '' ) ) || echo '' ))" >> $GITHUB_OUTPUT
# - name: Test extract name
# run: 'echo "Extracted environment name: $EXTRACTED"'
# env:
# EXTRACTED: ${{ steps.extract.outputs.tf-workspace }}



53 changes: 0 additions & 53 deletions .github/workflows/commitlint.yml

This file was deleted.

0 comments on commit 212b519

Please sign in to comment.