Skip to content

Commit

Permalink
Build container in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
raffomania committed Mar 10, 2024
1 parent b99143e commit 019015e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ jobs:

- run: cargo clippy -- -D warnings

- name: podman login
run: podman login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ghcr.io

- name: podman build linux/amd64
run: podman build --format docker --platform linux/amd64 --manifest linkblocks -f Containerfile target/release

- name: podman manifest push latest
run: podman manifest push linkblocks ghcr.io/raffomania/linkblocks:latest
if: github.ref == 'refs/heads/main'

test:
name: Test
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM debian:testing-slim
COPY --chmod=755 linkblocks /app/
ENTRYPOINT ["/app/linkblocks", "start"]

0 comments on commit 019015e

Please sign in to comment.