We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96f3844 commit db48b47Copy full SHA for db48b47
1 file changed
.github/workflows/release.yaml
@@ -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
30
+ context: ./src
31
+ push: false
32
+ tags: kanata333/docker-hub-push:latest
0 commit comments