Skip to content

Commit

Permalink
fix cd short
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhdanh27600 committed Sep 4, 2023
1 parent 904b0e0 commit 192beba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 75 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/cd-short.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: CD-SHORT
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [short-old]
branches: [short]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
"GEOLITE2_LICENSE_KEY=${{ secrets.GEOLITE2_LICENSE_KEY }}"
NEXT_PUBLIC_SHORT_DOMAIN=true
push: true
tags: ghcr.io/${{ github.repository }}:short-latest
tags: ghcr.io/${{ github.repository }}:short-latest@${{ github.sha }}
# deploy:
# needs: build
# runs-on: ubuntu-latest
Expand All @@ -55,18 +55,18 @@ jobs:
# docker compose up -d
# docker system prune -f

# deploy:
# runs-on: ubuntu-latest
# needs: build
# environment:
# name: 'production'
# url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
# steps:
# - name: Deploy to Azure Web App
# id: deploy-to-webapp
# uses: azure/webapps-deploy@v2
# with:
# app-name: 'dolph-aabiskar'
# slot-name: 'production'
# publish-profile: ${{ secrets.AzureAppService_PublishProfile }}
# images: 'ghcr.io/thanhdanh27600/clickdi:short-latest'
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'dolph-aabiskar'
slot-name: 'production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_34EA2A2C3814419DB187C95DEE1D90FA }}
images: 'ghcr.io/thanhdanh27600/clickdi:short-latest@${{ github.sha }}'
58 changes: 0 additions & 58 deletions .github/workflows/short_dolph-aabiskar.yml

This file was deleted.

0 comments on commit 192beba

Please sign in to comment.