Skip to content

Commit

Permalink
streamline actions / only prod push on releases
Browse files Browse the repository at this point in the history
  • Loading branch information
stynoo committed Dec 15, 2024
1 parent 569d443 commit 2fd7c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

name: Build and Publish Release via PyPi
name: Build and Publish Release to PyPI & GitHub

on: push

Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@

name: Publish Docker Image

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
schedule:
- cron: '21 5 */5 * *'
push:
branches: [ master ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
on: push

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -60,7 +49,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
push: true
push: ${{ GitHub.event_name == 'release' }} # only push on a new release
provenance: false
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 2fd7c1c

Please sign in to comment.