mirror of
https://github.com/librecaptcha/lc-core.git
synced 2025-01-27 13:03:12 -05:00
add tags to docker images
This commit is contained in:
parent
b8679fb5cc
commit
3717454f89
17
.github/workflows/docker-latest.yml
vendored
17
.github/workflows/docker-latest.yml
vendored
@ -3,6 +3,8 @@ name: Update docker image
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -20,6 +22,18 @@ jobs:
|
||||
- name: Assemble Jar
|
||||
run: sbt assembly
|
||||
|
||||
-
|
||||
name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v3
|
||||
with:
|
||||
images: librecaptcha/lc-core
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v1
|
||||
@ -37,8 +51,9 @@ jobs:
|
||||
with:
|
||||
context: ./
|
||||
file: ./Runner.Dockerfile
|
||||
tags: librecaptcha/lc-core:latest
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user