Skip to content

Commit 282255c

Browse files
committed
Build tags
1 parent df1310b commit 282255c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish-tag.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 'Publish Docker image tag to Docker Hub'
2+
3+
on:
4+
push:
5+
tags:
6+
- *
7+
8+
jobs:
9+
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set env
17+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
18+
- name: Docker login
19+
run: 'docker login -u jawnnypoo -p ${{ secrets.DOCKER_HUB_PASSWORD }}'
20+
- name: Build the Docker image
21+
run: docker build . --file Dockerfile --tag commit451/docker-android:${{ env.RELEASE_VERSION }}
22+
- name: Push the Docker image
23+
run: docker push commit451/docker-android

0 commit comments

Comments
 (0)