Skip to content

Commit 64a1b5c

Browse files
author
Aleksandr Petrukhin
committed
[misc] add manual workflow
1 parent 893495f commit 64a1b5c

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@ jobs:
99
runs-on: ubuntu-latest
1010
name: "Build Kafka-Proxy image"
1111
steps:
12+
- name: Get the tag
13+
id: get_tag
14+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
1215
- name: "Check out repository"
1316
uses: actions/checkout@v2
14-
17+
with:
18+
ref: ${{ steps.get_tag.outputs.result }}
1519
- name: "Login"
1620
uses: docker/login-action@v1
1721
with:
1822
username: ${{ secrets.DOCKER_USERNAME }}
1923
password: ${{ secrets.DOCKER_PASSWORD }}
20-
21-
- name: Get the tag
22-
id: get_tag
23-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
24-
2524
- name: "Publish to Docker Hub"
2625
uses: docker/build-push-action@v2
2726
with:

.github/workflows/manual.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Manual build'
2+
on: [workflow_dispatch]
3+
4+
jobs:
5+
build_docker:
6+
runs-on: ubuntu-latest
7+
name: "Build Kafka-Proxy image"
8+
steps:
9+
- name: "Check out repository"
10+
uses: actions/checkout@v2
11+
12+
- name: "Login"
13+
uses: docker/login-action@v1
14+
with:
15+
username: ${{ secrets.DOCKER_USERNAME }}
16+
password: ${{ secrets.DOCKER_PASSWORD }}
17+
18+
- name: "Publish to Docker Hub"
19+
uses: docker/build-push-action@v2
20+
with:
21+
push: true
22+
tags: shmel1k/kafka-proxy:latest

0 commit comments

Comments
 (0)