-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.03 KB
/
build_web_image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build the webapp image
on:
workflow_call:
workflow_dispatch:
inputs:
tag:
description: "Tag to use for the image"
required: true
jobs:
build_web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: prod
fetch-depth: 0
- name: Get Latest Tag
id: latest_tag
uses: WyriHaximus/github-action-get-previous-tag@v1
- name: Echo latest tag
run: echo '${{ steps.latest_tag.outputs.tag }}'
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
image: destcom/sera-web
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
tag: ${{ github.event.inputs.tag || steps.latest_tag.outputs.tag }}
tag_with_latest: true
path: ./sera-front/
build_file: ./prod.Dockerfile
extra_args: --build-arg port=80 --build-arg VITE_BACKEND_URL=https://sera-api.stroyco.eu --build-arg VITE_ENV_MODE=production