-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (59 loc) · 1.93 KB
/
release.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Building Release Docker images
concurrency: release
on:
release:
types:
- created
jobs:
build_docker:
name: Build docker image release
runs-on: ubuntu-latest
env:
JMETER_VERSION: "5.5"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get the version from ref
if: success()
id: get_version
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> "$GITHUB_OUTPUT"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: hellofreshtech
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker base image
uses: docker/build-push-action@v3
with:
build-args: |
JMETER_VERSION=${{env.JMETER_VERSION}}
tags: |
hellofresh/kangal-jmeter:${{env.JMETER_VERSION}}
hellofresh/kangal-jmeter:latest
context: docker/jmeter-base
file: docker/jmeter-base/Dockerfile
push: true
- name: Build and push Docker master image
uses: docker/build-push-action@v3
with:
build-args: |
JMETER_VERSION=${{env.JMETER_VERSION}}
tags: |
hellofresh/kangal-jmeter-master:${{env.JMETER_VERSION}}
hellofresh/kangal-jmeter-master:latest
context: docker/jmeter-master
file: docker/jmeter-master/Dockerfile
push: true
- name: Build and push Docker worker image
uses: docker/build-push-action@v3
with:
build-args: |
JMETER_VERSION=${{env.JMETER_VERSION}}
tags: |
hellofresh/kangal-jmeter-worker:${{env.JMETER_VERSION}}
hellofresh/kangal-jmeter-worker:latest
context: docker/jmeter-worker
file: docker/jmeter-worker/Dockerfile
push: true