Skip to content

Commit

Permalink
Merge pull request #7 from pankalog/cicd
Browse files Browse the repository at this point in the history
Cicd
  • Loading branch information
pankalog authored Feb 3, 2024
2 parents 4b8c704 + 664e861 commit cabc8de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/typescript-build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: TypeScript Build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

Expand Down
5 changes: 5 additions & 0 deletions publish_to_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GIT_DEPLOYMENT_VERSION=$(git rev-parse --short HEAD)
docker login
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
docker buildx build --push --platform linux/amd64,linux/arm64 -t pankalog/teltonika-codec-to-mqtt:"$GIT_DEPLOYMENT_VERSION" -t pankalog/teltonika-codec-to-mqtt:"latest" --builder multi-platform-builder .
docker-compose -p teltonika --env-file=localhost.env up -d

0 comments on commit cabc8de

Please sign in to comment.