Skip to content

Merge branch 'release/2.33.1' into develop #789

Merge branch 'release/2.33.1' into develop

Merge branch 'release/2.33.1' into develop #789

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Staging
on:
push:
branches: [develop]
pull_request:
branches: [develop]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- run: npm i -g @quasar/cli@latest
- run: npm ci
- name: Create env file
run: |
cat << EOF >> .env.production.local
${{ secrets.STAGING_ENV_FILE }}
EOF
# - run: npm run build in debug mode --if-present
- run: quasar build -m ssr -d --if-present
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry Docker Hub
# if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: harmlesskey/harmlesskey_staging