Skip to content

Commit

Permalink
docker publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Jul 26, 2024
1 parent d5d4d7d commit 6348c64
Show file tree
Hide file tree
Showing 7 changed files with 1,088 additions and 20 deletions.
36 changes: 36 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Ignore the entire target directory, as it's used for build artifacts
/target

# Ignore any generated documentation
/doc

# Ignore temporary files
*.rs.bk
*.rs.swp
*.rs.swo

# Ignore build scripts output
/build.rs

# Ignore files for specific editors or IDEs
*.iml
*.idea
.vscode
*.swp

# Ignore OS generated files
.DS_Store
Thumbs.db

# Ignore backup and log files
*.log
*.bak
*.tmp
*.old
*.swp

# Ignore git-related files
.git
.gitignore

Dockerfile
39 changes: 39 additions & 0 deletions .github/workflows/docker_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Docker Image

on:
workflow_dispatch:
inputs:
version:
description: "Docker image version"
required: true
default: "latest"

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
driver: docker-container

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
file: runtime.dockerfile
tags: "okm165/swiftness:${{ github.event.inputs.version }}"
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
build-args: |
FEATURES=starknet_with_keccak,blake2s
11 changes: 0 additions & 11 deletions Dockerfile

This file was deleted.

12 changes: 10 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,13 @@ starknet_with_keccak = [
"swiftness_air/starknet_with_keccak",
"swiftness_stark/starknet_with_keccak",
]
keccak = ["swiftness_stark/keccak"]
blake2s = ["swiftness_stark/blake2s"]
keccak = [
"swiftness_air/keccak",
"swiftness_stark/keccak",
"swiftness_proof_parser/keccak"
]
blake2s = [
"swiftness_air/blake2s",
"swiftness_stark/blake2s",
"swiftness_proof_parser/blake2s"
]
Loading

0 comments on commit 6348c64

Please sign in to comment.