Skip to content

Merge pull request #2 from 2Delight/deploy #1

Merge pull request #2 from 2Delight/deploy

Merge pull request #2 from 2Delight/deploy #1

Workflow file for this run

name: Publish
on:
push:
branches:
- master
workflow_dispatch:
jobs:
validator:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4
- name: Log in Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Extract Validator Metadata
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ secrets.DOCKER_USERNAME }}/validator
- name: Build and Push Validator
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./code/back/validator/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/validator:${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}
integrator:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4
- name: Log in Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Extract Integrator Metadata
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ secrets.DOCKER_USERNAME }}/integrator
- name: Build and Push Integrator
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./services/integrator/Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/integrator:${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}