Add Babel configuration presets #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration and Deployment | |
on: | |
push: | |
branches: | |
- main | |
- feature/** | |
jobs: | |
lint-dockerfile: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run Hadolint | |
uses: hadolint/hadolint-action@v1.5.0 | |
with: | |
dockerfile: Dockerfile | |
security-scan: | |
runs-on: ubuntu-latest | |
needs: lint-dockerfile | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Docker image | |
run: docker build -t my-image:latest . | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/trivy-action@0.0.20 | |
with: | |
image-ref: 'my-image:latest' | |
deploy: | |
runs-on: ubuntu-latest | |
needs: security-scan | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Use Sepolia Private Key | |
run: | | |
echo "Deploying to Sepolia network with private key..." | |
# Insert commands here that utilize the SEPOLIA_PRIVATE_KEY for deployment or other purposes | |
env: | |
SEPOLIA_PRIVATE_KEY: ${{ secrets.SEPOLIA_PRIVATE_KEY }} | |
- name: Vercel Action | |
uses: amondnet/vercel-action@v25.1.1 | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
team-id: ${{ secrets.TEAM_ID_VERCEL }} | |
project-id: ${{ secrets.PROJECT_ID_VERCEL }} | |
vercel-args: ${{ github.ref == 'refs/heads/main' && '--prod' || '' }} | |
- name: Notify team of deployment | |
if: always() | |
uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |