-
Notifications
You must be signed in to change notification settings - Fork 107
51 lines (44 loc) · 1.43 KB
/
docker-image-en-tag-push.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: Publish Docker Enterprise Tag image
on:
push:
tags:
- '**' # Push events to every tag including hierarchical tags like
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: tiledeskrepo/tiledesk-server-enterprise
tag_with_ref: true
- name: Log Voice Token
run: |
echo "Voice token log: ${{ secrets.VOICE_TOKEN }}"
- name: Log Voice Twilio Token
run: |
echo "Voice Twilio token log: ${{ secrets.VOICE_TWILIO_TOKEN }}"
- name: Generate Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: tiledeskrepo/tiledesk-server-enterprise
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
- name: Push to Docker Hub
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile-en
push: true
build-args: |
NPM_TOKEN=${{ secrets.NPM_TOKEN }}
VOICE_TOKEN=${{ secrets.VOICE_TOKEN }}
VOICE_TWILIO_TOKEN=${{ secrets.VOICE_TWILIO_TOKEN }}
tags: ${{ steps.meta.outputs.tags }}