Skip to content

Commit

Permalink
Update action files
Browse files Browse the repository at this point in the history
  • Loading branch information
mersocarlin committed Apr 15, 2024
1 parent ca00cef commit 26f5d85
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci-cd-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,25 @@ jobs:
npx vercel \
--token ${{ secrets.VERCEL_TOKEN }} \
--prod
docker-hub-deploy:
runs-on: ubuntu-latest
needs: [test-and-lint]

steps:
- uses: actions/checkout@v2
- name: Deploy to Docker Hub production
env:
CI_CONTAINER_REGISTRY: ${{ secrets.CI_CONTAINER_REGISTRY }}
CI_CONTAINER_REGISTRY_PASSWORD: ${{ secrets.CI_CONTAINER_REGISTRY_PASSWORD }}
CI_CONTAINER_REGISTRY_USERNAME: ${{ secrets.CI_CONTAINER_REGISTRY_USERNAME }}
run: |
npx mersocarlin-deployer \
--provider dockerHub \
--container-registry-host $CI_CONTAINER_REGISTRY \
--container-registry-username $CI_CONTAINER_REGISTRY_USERNAME \
--container-registry-password $CI_CONTAINER_REGISTRY_PASSWORD \
--dockerfile-path Dockerfile.prod \
--repository-name micro-services \
--repository-tag mersocarlin \
--verbose
22 changes: 22 additions & 0 deletions .github/workflows/ci-cd-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,25 @@ jobs:
VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID }} \
npx vercel \
--token ${{ secrets.VERCEL_TOKEN }}
docker-hub-deploy:
runs-on: ubuntu-latest
needs: [test-and-lint]

steps:
- uses: actions/checkout@v2
- name: Deploy to Docker Hub staging
env:
CI_CONTAINER_REGISTRY: ${{ secrets.CI_CONTAINER_REGISTRY }}
CI_CONTAINER_REGISTRY_PASSWORD: ${{ secrets.CI_CONTAINER_REGISTRY_PASSWORD }}
CI_CONTAINER_REGISTRY_USERNAME: ${{ secrets.CI_CONTAINER_REGISTRY_USERNAME }}
run: |
npx mersocarlin-deployer \
--provider dockerHub \
--container-registry-host $CI_CONTAINER_REGISTRY \
--container-registry-username $CI_CONTAINER_REGISTRY_USERNAME \
--container-registry-password $CI_CONTAINER_REGISTRY_PASSWORD \
--dockerfile-path Dockerfile.prod \
--repository-name micro-services \
--repository-tag mersocarlin.staging \
--verbose

0 comments on commit 26f5d85

Please sign in to comment.