frontend: make redirected links do direct links #284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD wcstore docker | |
on: | |
push: | |
pull_request: | |
jobs: | |
build-api: | |
runs-on: ubuntu-20.04 | |
if: github.ref == 'refs/heads/prod' | |
concurrency: build-api | |
env: | |
DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-api | |
DOCKER_TAG: latest | |
steps: | |
- name: Checkout source code | |
uses: noi-techpark/github-actions/checkout@v2 | |
- name: Build and push images | |
uses: noi-techpark/github-actions/docker-build-and-push@v2 | |
with: | |
docker-username: ${{ github.actor }} | |
docker-password: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ./backend/data-service/infrastructure/docker | |
docker-compose-file: docker-compose.local-wcs.yml | |
build-cdn: | |
runs-on: ubuntu-20.04 | |
if: github.ref == 'refs/heads/prod' | |
concurrency: build-cdn | |
env: | |
DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-cdn | |
DOCKER_TAG: latest | |
steps: | |
- name: Checkout source code | |
uses: noi-techpark/github-actions/checkout@v2 | |
- name: Build and push images | |
uses: noi-techpark/github-actions/docker-build-and-push@v2 | |
with: | |
docker-username: ${{ github.actor }} | |
docker-password: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ./backend/delivery-service/infrastructure/docker | |
docker-compose-file: docker-compose.local-wcs.yml | |
build-frontend: | |
runs-on: ubuntu-20.04 | |
if: github.ref == 'refs/heads/prod' | |
concurrency: build-frontend | |
env: | |
DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-frontend | |
DOCKER_TAG: latest | |
steps: | |
- name: Checkout source code | |
uses: noi-techpark/github-actions/checkout@v2 | |
- name: Setup node and yarn | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14.x' | |
cache: 'yarn' | |
cache-dependency-path: frontend/yarn.lock | |
- name: Build | |
run: | | |
yarn install | |
yarn run build | |
working-directory: frontend | |
- name: Build and push images | |
uses: noi-techpark/github-actions/docker-build-and-push@v2 | |
with: | |
docker-username: ${{ github.actor }} | |
docker-password: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: frontend/docker | |
docker-compose-file: docker-compose.local-wcs.yml | |
build-cli: | |
runs-on: ubuntu-20.04 | |
if: github.ref == 'refs/heads/prod' | |
concurrency: build-cli | |
env: | |
DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-cli | |
DOCKER_TAG: latest | |
steps: | |
- name: Checkout source code | |
uses: noi-techpark/github-actions/checkout@v2 | |
- name: Build and push images | |
uses: noi-techpark/github-actions/docker-build-and-push@v2 | |
with: | |
docker-username: ${{ github.actor }} | |
docker-password: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ./webcompstore-cli/docker | |
docker-compose-file: docker-compose.local-wcs.yml |