Skip to content

Commit

Permalink
feat: build and push on PR
Browse files Browse the repository at this point in the history
being able to test versions
  • Loading branch information
guilhem committed May 3, 2022
1 parent 11a7514 commit e5d5228
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
name: Publish Docker image

on:
release:
types: [published]
push:
branches:
- "master"
tags:
- "v*"
pull_request:
branches:
- "master"

jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
Expand All @@ -12,10 +20,15 @@ jobs:

- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
uses: docker/metadata-action@v3
with:
images: ghcr.io/guilhem/rss-issues-action
tag-sha: true
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down

0 comments on commit e5d5228

Please sign in to comment.