Skip to content

chore: disable dotenv #8

chore: disable dotenv

chore: disable dotenv #8

name: Build and Deploy
on:
push:
branches:
- master
paths-ignore:
- deploy/**
env:
GIT_COMMIT: ${{ github.sha }}
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.generate.outputs.targets }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate
id: generate
uses: docker/bake-action/subaction/list-targets@v4
with:
target: default
files: docker-bake.hcl
build:
runs-on: ubuntu-latest
needs:
- prepare
strategy:
fail-fast: false
matrix:
target: ${{ fromJson(needs.prepare.outputs.targets) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/bake-action@v4
with:
targets: ${{ matrix.target }}
push: true
files: docker-bake.hcl
deploy-prod:
uses: NaturalSelectionLabs/Daedalus/.github/workflows/deploy-v3-tpl.yaml@main
needs:
- build
with:
images: rss3/etherface
tag: ${{ github.sha }}
cluster: prod
namespace: network
releaseName: etherface
revision: master
dir: deploy/prod
secrets:
ARGOCD_TOKEN: ${{ secrets.ARGOCD_TOKEN }}