Skip to content

Commit

Permalink
update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
J164 committed Jul 13, 2024
1 parent c6b5db1 commit 215e582
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3

- name: Log into Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: cargo login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
platforms: amd64, arm64
push: true
tags: j1643/puzzle:latest


- name: cargo publish
run: cargo publish
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ authors = ["J164"]
rust-version = "1.79.0"
edition = "2021"
license = "MIT"
description = "Puzzle solving utilities"
repository = "https://github.com/J164/puzzle-utils"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down

0 comments on commit 215e582

Please sign in to comment.