Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
branches: [ "main", "dockerify", "experimental"]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -23,7 +25,7 @@ env:
jobs:
build:

runs-on: warp-ubuntu-latest-x64-4x
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
Expand All @@ -48,6 +50,10 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
Expand All @@ -66,11 +72,11 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with WarpBuild Docker builder
# https://docs.warpbuild.com/ci/docker-builders
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: Warpbuilds/build-push-action@v6
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
3 changes: 3 additions & 0 deletions init_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ if [ $? -ne 0 ]; then
exit 1
fi

# Print the version of the snapshotter
poetry run python -m snapshotter.version

# Continue with existing steps
poetry run python -m snapshotter.snapshotter_id_ping
ret_status=$?
Expand Down
Loading