fix: increment schema version for migration 6 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create and publish a Docker image in ghcr.io | |
on: | |
push: | |
branches: | |
- master | |
- main | |
tags: | |
- v* | |
env: | |
REGISTRY: ghcr.io | |
REPOSITORY: ${{ github.repository }} | |
jobs: | |
build-and-push-image: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
attestations: write | |
id-token: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v12 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build fedimint-observer | |
run: | | |
nix build -L .#fmo_server | |
- name: Build fedimint-observer image | |
run: | | |
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 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Tag and push fedimint-observer image to ghcr.io | |
env: | |
IMAGE_TAG: ${{ github.sha }} | |
run: |- | |
nix_tag=${{ env.fedimint_observer_container_tag }} && hub_tag="$REGISTRY/$REPOSITORY:$IMAGE_TAG" && docker tag "$nix_tag" "$hub_tag" && docker push "$hub_tag" |