Update release config to only publish tags
This only on published releases and not the "latest"
fixes
-name: Publish Docker - Release
+name: Publish to Registry - Release
on:
+ release:
+ types: [published]
push:
- tags:
- - v*
+ branches:
+ - master
+ schedule:
+ - cron: "0 2 * * 0" # Weekly on Sundays at 02:00
jobs:
- build:
+ update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
- name: tremorproject/tremor
+ name: myDocker/repository
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- tags: latest
tag_semver: true
