We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1310b commit 282255cCopy full SHA for 282255c
.github/workflows/publish-tag.yml
@@ -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