Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: alias domain to deployment #18

Merged
merged 3 commits into from
Jul 24, 2020
Merged

feat: alias domain to deployment #18

merged 3 commits into from
Jul 24, 2020

Conversation

amondnet
Copy link
Owner

@amondnet amondnet commented Jul 9, 2020

New input variable : alias-domains

Example

name: example - angular
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
jobs:
  angular:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/cache@v1
        with:
          path: ~/.npm
          key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
          restore-keys: |
            ${{ runner.os }}-node-
      - name: build
        run: |
          cd example/angular
          npm ci
          npx ng build --prod
      - uses: ./
        id: vercel-action-staging
        if: github.event_name == 'pull_request'
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          vercel-token: ${{ secrets.VERCEL_TOKEN }}
          vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
          vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_ANGULAR }}
          working-directory: example/angular/dist/angular
          alias-domains: |
            staging.angular.vercel-action.amond.dev
            pr-{{PR_NUMBER}}.angular.vercel-action.amond.dev
      - uses: ./
        id: vercel-action-production
        if: github.event_name == 'push'
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          vercel-token: ${{ secrets.VERCEL_TOKEN }}
          vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
          vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_ANGULAR }}
          working-directory: example/angular/dist/angular
          vercel-args: '--prod '

You can use pull request number via {{PR_NUMBER}}.
ex: https://pr-{{PR_NUMBER}}.angular.vercel-action.amond.dev => https://pr-18.angular.vercel-action.amond.dev

resolve #7

Signed-off-by: Minsu Lee amond@amond.net

@amondnet amondnet self-assigned this Jul 9, 2020
@amondnet amondnet added the Type: Feature New Feature label Jul 9, 2020
@amondnet amondnet added this to the v19.0.1+2 milestone Jul 9, 2020
@github-actions
Copy link

github-actions bot commented Jul 9, 2020

Deploy preview for team-scope-test ready!

✅ Preview
https://team-scope-test-m1ggj9o8g.vercel.app

Built with commit af77696.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

github-actions bot commented Jul 9, 2020

Deploy preview for zeit-now-deployment-action-example-static ready!

✅ Preview
https://zeit-now-deployment-action-example-static-b6yepa7qs.vercel.app
https://staging.static.vercel-action.amond.dev
https://pr-18.static.vercel-action.amond.dev

Built with commit af77696.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

github-actions bot commented Jul 9, 2020

Deploy preview for express-basic-auth ready!

✅ Preview
https://express-basic-auth-2z03eey84.vercel.app

Built with commit af77696.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

github-actions bot commented Jul 9, 2020

Deploy preview for zeit-now-deployment-action-example-angular ready!

✅ Preview
https://zeit-now-deployment-action-example-angular-pnoo4uz7a.vercel.app
https://staging.angular.vercel-action.amond.dev
https://pr-18.angular.vercel-action.amond.dev

Built with commit af77696.
This pull request is being automatically deployed with vercel-action

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>

feat: alias domain to deployment

resolve #7

Signed-off-by: Minsu Lee <amond@amond.net>
Signed-off-by: Minsu Lee <amond@amond.net>
Signed-off-by: Minsu Lee <amond@amond.net>
@sonarcloud
Copy link

sonarcloud bot commented Jul 9, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 4 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
100.0% 100.0% Duplication

@amondnet amondnet merged commit 1dbb4cf into master Jul 24, 2020
@amondnet amondnet deleted the feature/aslias-domain branch July 24, 2020 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: alias domain to deployment
1 participant