Skip to content

Give the packages a different name #6

Give the packages a different name

Give the packages a different name #6

Workflow file for this run

name: Publish Docker image
on:
[push]
# push:
# branches: [main]
# tags: [v*]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Image metadata
id: image_meta_bff-core
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}/bff-core
- name: 'BFF: Build and push'
uses: docker/build-push-action@v4
with:
context: .
file: apps/bff/Dockerfile
push: true
tags: ${{ steps.image_meta_bff-core.outputs.tags }}
labels: ${{ steps.image_meta_bff-core.outputs.labels }}
builder: ${{ steps.setup-buildx.outputs.name }}
- name: Image metadata
id: image_meta_bff-twap
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}/bff-twap
- name: 'TWAP: Build and push'
uses: docker/build-push-action@v4
with:
context: .
file: apps/twap/Dockerfile
push: true
tags: ${{ steps.image_meta_bff-twap.outputs.tags }}
labels: ${{ steps.image_meta_bff-twap.outputs.labels }}
builder: ${{ steps.setup-buildx.outputs.name }}