Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add buildx multiarch and updated gitignore #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
16 changes: 12 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,19 @@ jobs:
password: ${{ secrets.DOCKER }}

# Build and push the Docker image to the registry
- name: Build Docker
run: docker build -t quainetwork/go-quai-stratum:${{ env.VERSION }} .
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: quainetwork/go-quai-stratum:${{ env.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64

- name: Push to Docker Hub
run: docker push quainetwork/go-quai-stratum:${{ env.VERSION }}

# Tag the Git repository with the current version
- name: git tag
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build/
.vscode/
*.log
config.json
.idea/