Skip to content

Commit

Permalink
Update maven-docker.yml
Browse files Browse the repository at this point in the history
bugfix - docker image tag
  • Loading branch information
keke125 committed May 28, 2023
1 parent 65e0f92 commit c170c1e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/maven-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,25 @@ name: Java CI with Maven and Docker

on:
push:
branches: [ "main" ]

branches:
- 'main'
tags:
- 'v*.*.*'
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
keke125/pixel-art-filter-web
ghcr.io/keke125/pixel-art-filter-web
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand All @@ -39,5 +49,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: user/app:$(date +%s)
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit c170c1e

Please sign in to comment.