-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (30 loc) · 888 Bytes
/
build.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
name: Docker build
on:
workflow_call:
workflow_dispatch:
inputs:
tag:
description: 'Tag to use for the image'
required: true
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: release
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/stroycord
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
tag: ${{ github.event.inputs.tag || steps.latest_tag.outputs.tag }}
tag_with_latest: true
build_file: ./StroyCord.Dockerfile