Skip to content

Commit

Permalink
Merge pull request #46 from fparisotto/fix/build-docker-img-on-master
Browse files Browse the repository at this point in the history
fix: build docker image on master/main/tag
  • Loading branch information
elsirion authored Oct 14, 2024
2 parents 531f63c + 0677ee8 commit f12707d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ghcr-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Create and publish a Docker image in ghcr.io
on:
push:
branches:
- master
- main
tags:
- v?[0-9]+.[0-9]+.[0-9]+*
- v*
env:
REGISTRY: ghcr.io
REPOSITORY: ${{ github.repository }}
Expand All @@ -23,10 +26,10 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Build fedimint-observer
run: |
nix build -L .#fedimint-observer
nix build -L .#fmo_server
- name: Build fedimint-observer image
run: |
nix build -L .#fedimint-observer-image
nix build -L .#fmo_server_image
echo "fedimint_observer_container_tag=$(docker load < result | awk '{ print $3 }')" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/login-action@v3.2.0
Expand Down

0 comments on commit f12707d

Please sign in to comment.