From df531383af59df040a43c4fd7fb9195ce8812b8d Mon Sep 17 00:00:00 2001 From: Jordan Maynor Date: Wed, 21 Aug 2024 15:12:49 -0500 Subject: [PATCH] Updated docker publish to be on release. --- .github/workflows/autodeploy.yml | 8 ++++---- .github/workflows/ghcr-publish.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autodeploy.yml b/.github/workflows/autodeploy.yml index b486ceb..d690a4d 100644 --- a/.github/workflows/autodeploy.yml +++ b/.github/workflows/autodeploy.yml @@ -1,8 +1,8 @@ name: Docker Hub Deployment on: - push: - branches: - - 'main' + release: + types: [published] + jobs: push_to_registry: runs-on: ubuntu-latest @@ -25,4 +25,4 @@ jobs: push: true tags: exaltatus/dolores:latest - name: Logout from Docker Hub - run: docker logout \ No newline at end of file + run: docker logout diff --git a/.github/workflows/ghcr-publish.yml b/.github/workflows/ghcr-publish.yml index 6b854dc..0de1da1 100644 --- a/.github/workflows/ghcr-publish.yml +++ b/.github/workflows/ghcr-publish.yml @@ -1,8 +1,8 @@ name: Publish to GHCR on: - push: - branches: - - main + release: + types: [published] + jobs: publish: runs-on: ubuntu-latest