-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 1003 Bytes
/
release.yaml
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
name: Create Release
on:
push:
tags:
- '*/[0-9]+.[0-9]+.[0-9]+'
jobs:
create-docker-image:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Extract Tag Information
id: tag_info
run: echo "TAG=${{ github.ref }}" >> $GITHUB_ENV
- name: Set Algorithm Name Variable
id: algorithm
run: echo "ALGORITHM=$(echo $TAG | cut -d '/' -f 3)" >> $GITHUB_ENV
- name: Extract Version from Tag
id: version
run: echo "VERSION=$(echo $TAG | cut -d '/' -f 4)" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: harbor2.vantage6.ai
username: ${{ secrets.STARTER_HARBOR_USER }}
password: ${{ secrets.STARTER_HARBOR_SECRET }}
- name: Run Makefile Rule
run: make $ALGORITHM TAG=$VERSION