Skip to content

Commit

Permalink
pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Joatin committed Jan 6, 2025
1 parent c85e113 commit 6064213
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
uses: actions/checkout@v3

- run: sudo apt-get install --yes --no-install-recommends musl-tools

- name: "Setup Protoc"
uses: arduino/setup-protoc@v3

Expand All @@ -75,7 +75,7 @@ jobs:
- name: Build archive
shell: bash
run: |
dirname="ocpp-csms-server-${{ env.VERSION }}-x86_64-unknown-linux-musl"
dirname="ocpp-csms-server-${{ needs.get-tag.outputs.pkg-version }}-x86_64-unknown-linux-musl"
mkdir "$dirname"
mv "target/x86_64-unknown-linux-musl/release/ocpp" "$dirname"
mv "target/x86_64-unknown-linux-musl/release/api" "$dirname"
Expand All @@ -85,20 +85,9 @@ jobs:
- uses: AButler/upload-release-assets@v3.0
with:
files: "ocpp-csms-server-${{ env.VERSION }}-x86_64-unknown-linux-musl.tar.gz"
files: "ocpp-csms-server-${{ needs.get-tag.outputs.pkg-version }}-x86_64-unknown-linux-musl.tar.gz"
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: v${{ needs.get-tag.outputs.pkg-version }}


push-to-registry:
name: "Push Docker image to Docker Hub"
needs:
- "get-tag"
- "upload-assets"
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: actions/checkout@v3

- name: "Log in to Github Packages"
uses: "docker/login-action@v2"
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ FROM debian:bookworm-slim

EXPOSE 3000

CMD ["/bin/server"]
WORKDIR /bin

COPY target/x86_64-unknown-linux-musl/release/ocpp ./
COPY target/x86_64-unknown-linux-musl/release/api ./

CMD ["/bin/ocpp"]

0 comments on commit 6064213

Please sign in to comment.