Skip to content

Commit

Permalink
Merge pull request #4 from 2Delight/deploy
Browse files Browse the repository at this point in the history
bruh
  • Loading branch information
olegdayo authored Dec 1, 2024
2 parents eba490c + 548b9e8 commit 1fd476b
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@ jobs:
uses: actions/checkout@v4

- name: Log in Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3

- name: Extract Validator Metadata
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/validator

- name: Build and Push Validator
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
uses: docker/build-push-action@v6
with:
context: .
file: ./code/back/validator/Dockerfile
Expand All @@ -41,22 +44,25 @@ jobs:
uses: actions/checkout@v4

- name: Log in Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3

- name: Extract Integrator Metadata
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/integrator

- name: Build and Push Integrator
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
uses: docker/build-push-action@v6
with:
context: .
file: ./services/integrator/Dockerfile
file: ./code/back/integrator/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/integrator:${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 1fd476b

Please sign in to comment.