Skip to content

Commit

Permalink
github workflow improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
syslogic committed Jan 1, 2025
1 parent 89d2948 commit 1ed9545
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Build and publish a Docker image

on:
push:
branches: ['master']
branches:
- 'master'
tags:
- 'v*'

env:
IMAGE_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -32,13 +35,13 @@ jobs:

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand Down

0 comments on commit 1ed9545

Please sign in to comment.