Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jokob-sk committed Oct 5, 2024
2 parents b46c6e9 + 687d41f commit 6c8e41e
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/docker_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
name: Publish Docker image

on:
release:
types: [published]
push:
branches:
- '**'
tags:
- '*.[1-9]+[0-9]?.[1-9]+*'
- '*.*.*'
pull_request:
branches:
- master
jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -31,6 +35,24 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
jokobsk/mount-bookmark
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=latest
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Log in to Github Container registry
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 6c8e41e

Please sign in to comment.