Skip to content

Commit

Permalink
add buildx multiarch and updated gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Jul 7, 2023
1 parent 5f4264a commit 22e0de0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
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/

0 comments on commit 22e0de0

Please sign in to comment.