forked from iped-docker/iped
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (39 loc) · 1.34 KB
/
cicd_transcriptor.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
48
49
50
51
name: CI/CD
on: [push]
jobs:
build:
runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
if: startsWith(github.ref, 'refs/tags/transcriptor_')
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Docker login
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
- name: Set Environment
run: echo VERSION=${GITHUB_REF#refs/tags/transcriptor_} >> $GITHUB_ENV
- name: Docker build transcriptor
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.transcriptor
tags: |
ipeddocker/iped:transcriptor
ipeddocker/iped:transcriptor_${{ env.VERSION }}
provenance: false
push: true
secrets: |
"ACTION_GH_TOKEN=${{ secrets.ACTION_GH_TOKEN }}"
- name: Docker build central_node
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.transcriptor_central_node
tags: |
ipeddocker/iped:transcriptor_central_node
ipeddocker/iped:transcriptor_central_node_${{ env.VERSION }}
provenance: false
push: true
secrets: |
"ACTION_GH_TOKEN=${{ secrets.ACTION_GH_TOKEN }}"