Skip to content

Commit

Permalink
feat: Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
adthrasher committed Jan 21, 2025
1 parent 3760b07 commit 37e9224
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- v*

env:
REGISTRY: ghcr.io

jobs:
release:
runs-on: ubuntu-22.04
Expand All @@ -23,6 +26,18 @@ jobs:
with:
generate_release_notes: true
make_latest: true
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/sprocket:${{ github.ref_name }}
build_artifacts:
runs-on: ${{ matrix.os }}
strategy:
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM rust:1.82

RUN cargo install sprocket

ENTRYPOINT ["sprocket"]
CMD ["--help"]

0 comments on commit 37e9224

Please sign in to comment.