update: remove the installer app from menu and navbar
This commit is contained in:
@@ -1,48 +1,48 @@
|
||||
name: deploy to danak
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
DANAK_SERVER: "https://captain.stage.danakcorp.com"
|
||||
APP_TOKEN: 03786e2259b28db4b190733ab5e01505edf290820c69fa98d9b6961cbc79283b
|
||||
CAPROVER_APP_NAME: asan-service
|
||||
GITHUB_TOKEN: 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
|
||||
|
||||
steps:
|
||||
- name: Check out repositorys
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: zmihamid
|
||||
password: ${{ env.GITHUB_TOKEN }}
|
||||
|
||||
- name: Preset Image Name
|
||||
run: echo "IMAGE_URL=$(echo ghcr.io/zmihamid/${{ github.event.repository.name }}:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push Docker Image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{ env.IMAGE_URL }}
|
||||
|
||||
- name: Install CapRover CLI
|
||||
run: npm install -g caprover
|
||||
|
||||
- name: deploy to server
|
||||
run: |
|
||||
caprover deploy -a $CAPROVER_APP_NAME -u $DANAK_SERVER --appToken $APP_TOKEN -i "$IMAGE_URL"
|
||||
name: deploy to danak
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build_and_deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
DANAK_SERVER: 'https://captain.run.danakcorp.com'
|
||||
APP_TOKEN: 03786e2259b28db4b190733ab5e01505edf290820c69fa98d9b6961cbc79283b
|
||||
APP_NAME: asan-service
|
||||
GITHUB_TOKEN: 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
|
||||
|
||||
steps:
|
||||
- name: Check out repositorys
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: zmihamid
|
||||
password: ${{ env.GITHUB_TOKEN }}
|
||||
|
||||
- name: Preset Image Name
|
||||
run: echo "IMAGE_URL=$(echo ghcr.io/zmihamid/${{ github.event.repository.name }}:$(echo ${{ github.sha }} | cut -c1-7) | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push Docker Image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ${{ env.IMAGE_URL }}
|
||||
|
||||
- name: Install CapRover CLI
|
||||
run: npm install -g caprover
|
||||
|
||||
- name: deploy to server
|
||||
run: |
|
||||
caprover deploy -a $APP_NAME -u $DANAK_SERVER --appToken $APP_TOKEN -i "$IMAGE_URL"
|
||||
|
||||
+47
-47
@@ -1,47 +1,47 @@
|
||||
FROM node:20-alpine AS base
|
||||
|
||||
RUN apk add --no-cache tzdata
|
||||
|
||||
# Set the timezone to Asia/Tehran
|
||||
RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone
|
||||
|
||||
FROM base AS deps
|
||||
WORKDIR /temp-deps
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
FROM base AS builder
|
||||
WORKDIR /build
|
||||
COPY . ./
|
||||
COPY --from=deps /temp-deps/node_modules ./node_modules
|
||||
RUN npm run build
|
||||
RUN npm install --omit=dev
|
||||
|
||||
|
||||
FROM base AS runner
|
||||
WORKDIR /app
|
||||
ENV NUXT_TELEMETRY_DISABLED=1
|
||||
|
||||
|
||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||
RUN chown -R appuser:appgroup /app
|
||||
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/.nuxt ./.nuxt
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/static ./static
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/package.json ./
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/node_modules/ ./node_modules/
|
||||
COPY --from=builder --chown=appuser:appgroup /build ./
|
||||
|
||||
|
||||
USER appuser
|
||||
|
||||
# Set environment variables
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=7420
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
|
||||
EXPOSE 7420
|
||||
|
||||
# Start the Nuxt 2 app
|
||||
CMD ["npm", "start"]
|
||||
FROM node:20-alpine AS base
|
||||
|
||||
RUN apk add --no-cache tzdata
|
||||
|
||||
# Set the timezone to Asia/Tehran
|
||||
RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone
|
||||
|
||||
FROM base AS deps
|
||||
WORKDIR /temp-deps
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
FROM base AS builder
|
||||
WORKDIR /build
|
||||
COPY . ./
|
||||
COPY --from=deps /temp-deps/node_modules ./node_modules
|
||||
RUN npm run build
|
||||
RUN npm install --omit=dev
|
||||
|
||||
|
||||
FROM base AS runner
|
||||
WORKDIR /app
|
||||
ENV NUXT_TELEMETRY_DISABLED=1
|
||||
|
||||
|
||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||
RUN chown -R appuser:appgroup /app
|
||||
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/.nuxt ./.nuxt
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/static ./static
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/package.json ./
|
||||
# COPY --from=builder --chown=appuser:appgroup /build/node_modules/ ./node_modules/
|
||||
COPY --from=builder --chown=appuser:appgroup /build ./
|
||||
|
||||
|
||||
USER appuser
|
||||
|
||||
# Set environment variables
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=7420
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
|
||||
EXPOSE 7420
|
||||
|
||||
# Start the Nuxt 2 app
|
||||
CMD ["npm", "start"]
|
||||
|
||||
@@ -48,29 +48,22 @@
|
||||
<!-- <span>راهنما</span>-->
|
||||
</div>
|
||||
|
||||
|
||||
<ul class="uls">
|
||||
<li tag="li">
|
||||
<ul class="uls">
|
||||
<!-- <li tag="li">
|
||||
<a class="links" href="https://installer.asan-service.com/" target="_blank"> نرم افزار نصاب </a>
|
||||
</li>
|
||||
<li tag="li">
|
||||
<a class="links" href="https://gps.asan-service.com/" target="_blank"> نرم افزار ردیاب </a>
|
||||
</li>
|
||||
<nuxt-link
|
||||
to="/apps"
|
||||
:class="$route.name.includes('download') && 'active'"
|
||||
tag="li"
|
||||
>
|
||||
|
||||
<a class="links"> دانلود </a>
|
||||
</nuxt-link>
|
||||
<!-- <li tag="li">
|
||||
</li> -->
|
||||
<li tag="li">
|
||||
<a class="links" href="https://gps.asan-service.com/" target="_blank"> نرم افزار ردیاب </a>
|
||||
</li>
|
||||
<nuxt-link to="/apps" :class="$route.name.includes('download') && 'active'" tag="li">
|
||||
<a class="links"> دانلود </a>
|
||||
</nuxt-link>
|
||||
<!-- <li tag="li">
|
||||
<a class="links" href="#"> آموزش </a>
|
||||
</li> -->
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
|
||||
<div class="title"></div>
|
||||
<div class="title"></div>
|
||||
|
||||
<ul>
|
||||
<nuxt-link :to="{ name: 'learning', query: { page: 1 } }" tag="li">
|
||||
@@ -83,7 +76,7 @@
|
||||
<div class="title">
|
||||
<!-- <span>حساب کاربری</span>-->
|
||||
</div>
|
||||
<ul style="margin-bottom: 3rem;">
|
||||
<ul style="margin-bottom: 3rem">
|
||||
<nuxt-link :to="isUser ? { name: 'account' } : { name: 'auth-login-register' }" tag="li">
|
||||
<a>
|
||||
<span v-if="isUser">{{ $auth.user.first_name + ' ' + $auth.user.last_name }}</span>
|
||||
@@ -99,7 +92,6 @@
|
||||
</aside>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
computed: {
|
||||
@@ -180,6 +172,4 @@ export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
<style scoped></style>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<i class="fas fa-angle-down"></i>
|
||||
</a>
|
||||
<div class="drop-down">
|
||||
<a href="https://installer.asan-service.com/" target="_blank"> نرم افزار نصاب </a>
|
||||
<!-- <a href="https://installer.asan-service.com/" target="_blank"> نرم افزار نصاب </a> -->
|
||||
<a href="https://gps.asan-service.com/" target="_blank"> نرم افزار ردیاب </a>
|
||||
<a href="/apps"> دانلود </a>
|
||||
<a href="#"> آموزش </a>
|
||||
@@ -85,7 +85,6 @@
|
||||
<a>دانلود ها</a>
|
||||
</nuxt-link>
|
||||
|
||||
|
||||
<li
|
||||
class="dropDown-container contactus"
|
||||
:class="contactusDropDownActiveClass && 'active'"
|
||||
|
||||
@@ -54,13 +54,13 @@
|
||||
<!-- <a href="https://installer.asan-service.com" target="_blank">
|
||||
<img src="/assets/img/footer/pwaApp.png" alt="icon" />
|
||||
</a> -->
|
||||
<a href="https://installer.asan-service.com" target="_blank">
|
||||
<!-- <a href="https://installer.asan-service.com" target="_blank">
|
||||
<img class="firstImage" src="/assets/img/footer/AAA.png" alt="icon" />
|
||||
</a>
|
||||
</a> -->
|
||||
<a href="https://cafebazaar.ir/app/com.verity.app" target="_blank">
|
||||
<img src="/assets/img/footer/dwnld.jpg" alt="icon" />
|
||||
</a>
|
||||
|
||||
|
||||
<!-- <button>
|
||||
<a :href="config.andoridAppURL" target="_blank">
|
||||
<img :width="100" src="/assets/img/footer/androidApp.png" alt="icon" />
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user