Skip to content

Commit

Permalink
Update on docker publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozgulbas committed Jun 18, 2024
1 parent ff27f13 commit 20e3207
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 80 deletions.
76 changes: 0 additions & 76 deletions .github/workflows/docker-build.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ name: Docker Build and Publish

on:
push:
branches: [ "main" ]
branches: [ "*" ]
# Publish semver tags as releases.
tags: [ '*' ]
schedule: # Run on Tuesday's at noon
- cron: '0 12 * * 2'

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -20,6 +22,7 @@ env:

jobs:
build_and_publish:

runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -35,10 +38,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Login against a Docker registry except on PR
# Login against a Docker registry
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -59,7 +61,7 @@ jobs:
type=ref,event=pr
type=raw,value=latest,enable={{is_default_branch}}
# Build and push Docker image with Buildx (don't push on PR)
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
Expand Down

0 comments on commit 20e3207

Please sign in to comment.