-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.33 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build Attencion Broker
on:
workflow_dispatch:
inputs:
version:
description: "Version"
required: true
jobs:
tag:
if: github.ref == 'refs/heads/master'
uses: singnet/das/.github/workflows/run-semver.yml@master
with:
version: ${{ github.event.inputs.version }}
version-strategy: bump-version-from-variable-value
job-image-namespace: trueagi
job-image-version-semver: semantic-versioning
main-branch: master
version-tag-regex-pattern: /^\d+\.\d+\.\d+$/
version-require-confirmation: "true"
title: New version of Attention Broker
deliverable: Tagged branch (${{ github.ref_name }}) in the repository
secrets: inherit
build:
runs-on: ubuntu-22.04
needs: tag
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to DockerHub
if: success()
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
file: docker/Dockerfile
context: .
push: true
tags: trueagi/das:${{ inputs.version }}-attention-broken,trueagi/das:latest-attention-broken