Skip to content

Commit

Permalink
Fix docker-publish.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
phlegx committed Apr 1, 2022
1 parent 9d84eb8 commit 06d11d5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Docker
name: Publish Docker image

on:
push:
branches: [ master ]
release:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
Expand All @@ -23,11 +23,7 @@ jobs:
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: phlegx/sidekiq-web
tags: |
type=raw,value=latest,enable=${{ endsWith(GitHub.ref, 'main') }}
type=ref,event=tag
flavor: |
latest=true

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
Expand Down

0 comments on commit 06d11d5

Please sign in to comment.