Skip to content

Commit 86c9c55

Browse files
committed
Deploy v2.1 til prod i v2.1 branchen
1 parent f073721 commit 86c9c55

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

.github/workflows/main.yaml

+2-31
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
build-and-push:
3232
name: Build and push Docker container
33-
if: github.ref == 'refs/heads/v2.1' || github.ref == 'refs/heads/master'
33+
if: github.ref == 'refs/heads/v2.1''
3434
runs-on: ubuntu-latest
3535
permissions:
3636
packages: write
@@ -71,7 +71,7 @@ jobs:
7171
deploy-prod:
7272
name: Deploy to prod
7373
needs: build-and-push
74-
if: github.ref == 'refs/heads/master'
74+
if: github.ref == 'refs/heads/v2.1'
7575
runs-on: ubuntu-latest
7676
permissions:
7777
contents: read
@@ -84,32 +84,3 @@ jobs:
8484
CLUSTER: prod-fss
8585
RESOURCE: .nais/prod.yaml
8686
VAR: image=${{ needs.build-and-push.outputs.image }}
87-
88-
deploy-gh-pages:
89-
name: Deploy til gh-pages
90-
needs: build-and-push
91-
if: github.ref == 'refs/heads/dev'
92-
runs-on: ubuntu-latest
93-
permissions:
94-
contents: write
95-
steps:
96-
- uses: actions/checkout@v3
97-
- uses: actions/setup-node@v3
98-
with:
99-
node-version: '16.13.1'
100-
cache: 'npm'
101-
- name: Install dependencies
102-
run: npm ci
103-
- name: Build
104-
run: npm run build
105-
- name: Bundle
106-
run: |
107-
mv build v2.1
108-
mkdir build
109-
mv v2.1 build
110-
- name: Deploy gh-pages
111-
uses: peaceiris/[email protected]
112-
with:
113-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114-
PUBLISH_BRANCH: gh-pages
115-
PUBLISH_DIR: build

0 commit comments

Comments
 (0)