Skip to content

Commit

Permalink
Docker publish (#15)
Browse files Browse the repository at this point in the history
* Publish images

* Run on push
  • Loading branch information
anxolin authored May 7, 2024
1 parent 6b9e8c6 commit 0eed14d
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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: Login to GitHub Container Registry
uses: docker/#-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Image metadata
id: image_meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}

- name: 'TWAP: Build and push'
uses: docker/build-push-action@v4
with:
context: .
file: apps/twap/Dockerfile
push: true
tags: ${{ steps.image_meta.outputs.tags }}
labels: ${{ steps.image_meta.outputs.labels }}

- name: 'BFF: Build and push'
uses: docker/build-push-action@v4
with:
context: .
file: apps/bff/Dockerfile
push: true
tags: ${{ steps.image_meta.outputs.tags }}
labels: ${{ steps.image_meta.outputs.labels }}

0 comments on commit 0eed14d

Please # to comment.