Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hadjian committed Dec 5, 2023
1 parent 760a4b6 commit e6066ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

docker:
if: startsWith(github.ref, 'refs/tags')
# if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest

Expand Down Expand Up @@ -76,11 +76,15 @@ jobs:

- name: Set up docker buildx
uses: docker/setup-buildx-action@v3


- name: Download tmc-catalog-cli
run: /bin/sh ./docker/download-cli.sh

- name: Build and push Docker images
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM alpine:latest
RUN mkdir /thingmodels
WORKDIR /thingmodels
RUN /bin/sh download-cli.sh
COPY tm-catalog-cli /thingmodels
RUN chmod 755 /thingmodels/tm-catalog-cli
ENTRYPOINT ["/thingmodels/tm-catalog-cli", "serve", "--host", "0.0.0.0", "--port", "8080"]
Empty file modified docker/download-cli.sh
100644 → 100755
Empty file.

0 comments on commit e6066ea

Please sign in to comment.