Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Initial commit for the Profile #1

Initial commit for the Profile

Initial commit for the Profile #1

name: preview
on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- "v*"
jobs:
update_dockerhub:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: get latest tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
id: get-latest-tag
with:
fallback: latest
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "18.15"
- name: Install
run: npm i -g @quasar/cli
- name: Build
run: npm install;npm run build:preview
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile-preview
push: true
tags: beclab/profile-preview:${{ steps.get-latest-tag.outputs.tag }}