fix: docker hub releasing

This commit is contained in:
Karol Sójko 2022-06-21 15:10:53 +02:00
parent 263dc8a98d
commit e90caeac32
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0

View file

@ -58,22 +58,17 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build image
run: yarn docker build @standardnotes/scheduler-server -t standardnotes/scheduler
- name: Publish to Registry (dev tag)
uses: manusa/actions-publish-docker@v1.1.2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
name: standardnotes/scheduler
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag: "dev"
- name: Publish to Registry (sha tag)
uses: manusa/actions-publish-docker@v1.1.2
with:
name: standardnotes/scheduler
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tag: "${{ github.sha }}"
- name: Build, tag, and push image to Docker Hub
run: |
yarn docker build @standardnotes/scheduler-server -t standardnotes/scheduler:${{ github.sha }}
docker push standardnotes/scheduler:${{ github.sha }}
docker tag standardnotes/scheduler:${{ github.sha }} standardnotes/scheduler:dev
docker push standardnotes/scheduler:dev
deploy-worker:
needs: publish-aws-ecr