Skip to content

Commit db48b47

Browse files
committed
Add workflow for release
1 parent 96f3844 commit db48b47

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: release
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/release.yaml
7+
# release:
8+
# types: [released]
9+
10+
jobs:
11+
build:
12+
# if: github.event.release.target_commitish == 'master'
13+
name: Build and push docker image
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set image tag
19+
run: echo "IMAGE_TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
20+
21+
- name: Login to DockerHub
22+
uses: docker/login-action@v1
23+
with:
24+
username: ${{ secrets.DOCKER_USERNAME }}
25+
password: ${{ secrets.DOCKER_PASSWORD }}
26+
27+
- name: Build and push
28+
uses: docker/build-push-action@v2
29+
with:
30+
context: ./src
31+
push: false
32+
tags: kanata333/docker-hub-push:latest

0 commit comments

Comments
 (0)