Skip to content

Commit

Permalink
fix docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonczy committed Nov 29, 2023
1 parent 0901be8 commit ed8756b
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/push_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#
# On every new `vX.Y.Z` tag the following images are pushed:
#
# notional-labs/centauri:X.Y.Z # is pushed
# notional-labs/centauri:X.Y # is updated to X.Y.Z
# notional-labs/centauri:X # is updated to X.Y.Z
# notional-labs/centauri:latest # is updated to X.Y.Z
# ghcr.io/composablefi/centauri:X.Y.Z # is pushed
# ghcr.io/composablefi/centauri:X.Y # is updated to X.Y.Z
# ghcr.io/composablefi/centauri:X # is updated to X.Y.Z
# ghcr.io/composablefi/centauri:latest # is updated to X.Y.Z
#
# All the images above have support for linux/amd64 and linux/arm64.
#
Expand All @@ -29,23 +29,19 @@ jobs:
feeapp-images:
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
- name: Check out the repo
uses: actions/checkout@v3
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Parse tag
- name: Parse tag
id: tag
run: |
VERSION=$(echo ${{ github.ref_name }} | sed "s/v//")
Expand All @@ -56,8 +52,7 @@ jobs:
echo "MAJOR_VERSION=$MAJOR_VERSION" >> $GITHUB_ENV
echo "MINOR_VERSION=$MINOR_VERSION" >> $GITHUB_ENV
echo "PATCH_VERSION=$PATCH_VERSION" >> $GITHUB_ENV
-
name: Build and push
- name: Build and push
id: build_push_image
uses: docker/build-push-action@v3
with:
Expand All @@ -66,6 +61,6 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/notional-labs/centauri:${{ env.MAJOR_VERSION }}
ghcr.io/notional-labs/centauri:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}
ghcr.io/notional-labs/centauri:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }}
ghcr.io/composablefi/centauri:${{ env.MAJOR_VERSION }}
ghcr.io/composablefi/centauri:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}
ghcr.io/composablefi/centauri:${{ env.MAJOR_VERSION }}.${{ env.MINOR_VERSION }}.${{ env.PATCH_VERSION }}

0 comments on commit ed8756b

Please sign in to comment.