forked from PolusAI/sophios
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (31 loc) · 954 Bytes
/
publish_rest_docker.yml
File metadata and controls
40 lines (31 loc) · 954 Bytes
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
name: Publish REST API Docker
on:
workflow_dispatch:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+.[0-9]+.[0-9]+-dev[0-9]+
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Set up Docker Buildx 🐳
uses: docker/setup-buildx-action@v1
- name: Get Tag
run: echo "tag=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Print Tag
run: echo "Publishing with tag ${{ env.tag }}"
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Publish Sophios Container 🐳
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile_ubuntu_REST
push: true
tags: polusai/sophios-rest-api:${{ env.tag }}