Skip to content

Commit

Permalink
ci: restore branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sdobbert committed Jul 16, 2024
1 parent 1a7a32c commit f8649df
Showing 1 changed file with 66 additions and 66 deletions.
132 changes: 66 additions & 66 deletions .github/workflows/on-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,74 +6,74 @@ env:
on:
push:
branches:
- fix-sq-coverage
- main

jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources ๐Ÿ”ฐ
# uses: actions/checkout@v4

# - name: Setup Node.js ๐Ÿงฎ
# uses: actions/setup-node@v4
# with:
# node-version: 20

# - name: Cache Node.js modules ๐Ÿ’พ
# uses: actions/cache@v4
# with:
# path: ~/.npm
# key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.OS }}-node-
# ${{ runner.OS }}-

# - name: Install dependencies โฌ
# run: npm ci

# - name: Build artifacts ๐Ÿ—๏ธ
# run: npm run build

# - name: Deploy (to latest) ๐Ÿš€
# uses: JamesIves/github-pages-deploy-action@v4.6.1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# branch: gh-pages
# folder: build
# target-folder: latest

# - name: Login to Nexus โŒจ๏ธ
# uses: docker/login-action@v3
# with:
# registry: ${{ env.DOCKER_REGISTRY }}
# username: ${{ secrets.NEXUS_USERNAME }}
# password: ${{ secrets.NEXUS_PASSWORD }}

# - name: Build docker image (main) ๐Ÿ—๏ธ
# uses: docker/build-push-action@v6
# with:
# context: .
# tags: |
# ${{ env.DOCKER_REGISTRY }}/shogun-gis-client:main
# load: true

# - name: Push docker image to Nexus (main) ๐Ÿ“ 
# run: |
# docker push ${{ env.DOCKER_REGISTRY }}/shogun-gis-client:main

# - name: Build docker image e2e-tests (main) ๐Ÿ—๏ธ
# uses: docker/build-push-action@v6
# with:
# file: Dockerfile.e2e
# context: .
# tags: |
# ${{ env.DOCKER_REGISTRY }}/shogun-gis-client-e2e-tests:main
# load: true

# - name: Push docker image to Nexus (main) ๐Ÿ“ 
# run: |
# docker push ${{ env.DOCKER_REGISTRY }}/shogun-gis-client-e2e-tests:main
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources ๐Ÿ”ฐ
uses: actions/checkout@v4

- name: Setup Node.js ๐Ÿงฎ
uses: actions/setup-node@v4
with:
node-version: 20

- name: Cache Node.js modules ๐Ÿ’พ
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies โฌ
run: npm ci

- name: Build artifacts ๐Ÿ—๏ธ
run: npm run build

- name: Deploy (to latest) ๐Ÿš€
uses: JamesIves/github-pages-deploy-action@v4.6.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: build
target-folder: latest

- name: Login to Nexus โŒจ๏ธ
uses: docker/login-action@v3
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ secrets.NEXUS_USERNAME }}
password: ${{ secrets.NEXUS_PASSWORD }}

- name: Build docker image (main) ๐Ÿ—๏ธ
uses: docker/build-push-action@v6
with:
context: .
tags: |
${{ env.DOCKER_REGISTRY }}/shogun-gis-client:main
load: true

- name: Push docker image to Nexus (main) ๐Ÿ“ 
run: |
docker push ${{ env.DOCKER_REGISTRY }}/shogun-gis-client:main
- name: Build docker image e2e-tests (main) ๐Ÿ—๏ธ
uses: docker/build-push-action@v6
with:
file: Dockerfile.e2e
context: .
tags: |
${{ env.DOCKER_REGISTRY }}/shogun-gis-client-e2e-tests:main
load: true

- name: Push docker image to Nexus (main) ๐Ÿ“ 
run: |
docker push ${{ env.DOCKER_REGISTRY }}/shogun-gis-client-e2e-tests:main
sonarqube:
if: ${{ github.actor != 'dependabot[bot]' }}
Expand Down

0 comments on commit f8649df

Please sign in to comment.