Skip to content

Commit c067f50

Browse files
authored
Merge pull request #147 from powerloom/feat/version
feat: Add version tracking and reporting for Snapshotter Lite v2
2 parents 129c9f5 + 0cafaf4 commit c067f50

File tree

6 files changed

+162
-29
lines changed

6 files changed

+162
-29
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
branches: [ "main", "dockerify", "experimental"]
1313
# Publish semver tags as releases.
1414
tags: [ 'v*.*.*' ]
15+
pull_request:
16+
branches: [ "main" ]
1517

1618
env:
1719
# Use docker.io for Docker Hub if empty
@@ -23,7 +25,7 @@ env:
2325
jobs:
2426
build:
2527

26-
runs-on: warp-ubuntu-latest-x64-4x
28+
runs-on: ubuntu-latest
2729
permissions:
2830
contents: read
2931
packages: write
@@ -48,6 +50,10 @@ jobs:
4850
- name: Set up QEMU
4951
uses: docker/setup-qemu-action@v3
5052

53+
# Workaround: https://github.com/docker/build-push-action/issues/461
54+
- name: Setup Docker buildx
55+
uses: docker/setup-buildx-action@v3
56+
5157
# Login against a Docker registry except on PR
5258
# https://github.com/docker/login-action
5359
- name: Log into registry ${{ env.REGISTRY }}
@@ -66,11 +72,11 @@ jobs:
6672
with:
6773
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6874

69-
# Build and push Docker image with WarpBuild Docker builder
70-
# https://docs.warpbuild.com/ci/docker-builders
75+
# Build and push Docker image with Buildx (don't push on PR)
76+
# https://github.com/docker/build-push-action
7177
- name: Build and push Docker image
7278
id: build-and-push
73-
uses: Warpbuilds/build-push-action@v6
79+
uses: docker/build-push-action@v6
7480
with:
7581
context: .
7682
platforms: linux/amd64,linux/arm64

init_docker.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ if [ $? -ne 0 ]; then
4141
exit 1
4242
fi
4343

44+
# Print the version of the snapshotter
45+
poetry run python -m snapshotter.version
46+
4447
# Continue with existing steps
4548
poetry run python -m snapshotter.snapshotter_id_ping
4649
ret_status=$?

0 commit comments

Comments
 (0)