feat(ci/cd): disabled nx-cloud #2
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: Build and deploy | |
on: | |
push: | |
branches: | |
- main | |
# paths: | |
# - apps/** | |
# - libs/** | |
env: | |
DOCKER_IMAGE: otwld/velero-ui | |
jobs: | |
main: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
- run: yarn install --frozen-lockfile | |
- uses: nrwl/nx-set-shas@v3 | |
# - run: npx nx-cloud record -- nx format:check | |
- run: npx nx affected -t lint build | |
- name: get-npm-version | |
id: package-version | |
uses: martinbeentjes/[email protected] | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push Docker Image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ${{ env.DOCKER_IMAGE }}:${{ steps.package-version.outputs.current-version }}, ${{ env.DOCKER_IMAGE }}:latest | |