Skip to content

Commit 1ed9545

Browse files
committed
github workflow improved.
1 parent 89d2948 commit 1ed9545

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/android-ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ name: Build and publish a Docker image
22

33
on:
44
push:
5-
branches: ['master']
5+
branches:
6+
- 'master'
7+
tags:
8+
- 'v*'
69

710
env:
811
IMAGE_NAME: ${{ github.repository }}
@@ -32,13 +35,13 @@ jobs:
3235

3336
- name: Extract metadata (tags, labels) for Docker
3437
id: meta
35-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
38+
uses: docker/metadata-action@v5
3639
with:
3740
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3841

3942
- name: Build and push Docker image
4043
id: push
41-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
44+
uses: docker/build-push-action@v5
4245
with:
4346
context: .
4447
push: true

0 commit comments

Comments
 (0)