fix: docker hub building process

This commit is contained in:
Karol Sójko
2022-06-23 11:47:43 +02:00
parent 9f75c2b601
commit dd6d409ebb
3 changed files with 24 additions and 12 deletions

View File

@@ -61,13 +61,17 @@ jobs:
- uses: actions/checkout@v3
- name: Build locally
run: yarn build:api-gateway
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v4
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
name: standardnotes/api-gateway
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "dev,${{ github.sha }}"
- name: Build, tag, and push image to Docker Hub
run: |
yarn docker build @standardnotes/api-gateway -t standardnotes/api-gateway:${{ github.sha }}
docker push standardnotes/api-gateway:${{ github.sha }}
docker tag standardnotes/api-gateway:${{ github.sha }} standardnotes/api-gateway:dev
docker push standardnotes/api-gateway:dev
deploy-web:
needs: publish-aws-ecr

View File

@@ -62,13 +62,17 @@ jobs:
- uses: actions/checkout@v3
- name: Build locally
run: yarn build:files
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v4
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
name: standardnotes/files
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "dev,${{ github.sha }}"
- name: Build, tag, and push image to Docker Hub
run: |
yarn docker build @standardnotes/files-server -t standardnotes/files:${{ github.sha }}
docker push standardnotes/files:${{ github.sha }}
docker tag standardnotes/files:${{ github.sha }} standardnotes/files:dev
docker push standardnotes/files:dev
deploy-web:
needs: publish-aws-ecr

View File

@@ -62,13 +62,17 @@ jobs:
- uses: actions/checkout@v3
- name: Build locally
run: yarn build:syncing-server
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v4
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
name: standardnotes/syncing-server-js
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "dev,${{ github.sha }}"
- name: Build, tag, and push image to Docker Hub
run: |
yarn docker build @standardnotes/syncing-server -t standardnotes/syncing-server-js:${{ github.sha }}
docker push standardnotes/syncing-server-js:${{ github.sha }}
docker tag standardnotes/syncing-server-js:${{ github.sha }} standardnotes/syncing-server-js:dev
docker push standardnotes/syncing-server-js:dev
deploy-web:
needs: publish-aws-ecr