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