diff options
author | Mo Tarbin <mhed.t91@gmail.com> | 2024-09-05 22:42:25 -0400 |
---|---|---|
committer | Mo Tarbin <mhed.t91@gmail.com> | 2024-09-05 22:42:25 -0400 |
commit | cce72fe05e5a598edd4dc6c1f867cc875a08f22a (patch) | |
tree | 15e4355776784cea83ebb2c7b10535967565b73b | |
parent | 65aece2cd602f38f49cdc0efc2f65a87d4d525e9 (diff) | |
download | donetick-cce72fe05e5a598edd4dc6c1f867cc875a08f22a.tar.gz donetick-cce72fe05e5a598edd4dc6c1f867cc875a08f22a.tar.bz2 donetick-cce72fe05e5a598edd4dc6c1f867cc875a08f22a.zip |
Update Docker image names and build process to align with project requirements and conventions.
-rw-r--r-- | .github/workflows/docker-image-release.yml | 3 | ||||
-rw-r--r-- | Dockerfile | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/docker-image-release.yml b/.github/workflows/docker-image-release.yml index 1067b69..db68385 100644 --- a/.github/workflows/docker-image-release.yml +++ b/.github/workflows/docker-image-release.yml @@ -44,9 +44,10 @@ jobs: # Build and tag Docker image - name: Build Docker image run: | - docker build -t ${{ secrets.DOCKER_USERNAME }}/donetick:${{ github.sha }} . + docker build -t ${{ secrets.DOCKER_USERNAME }}/my-go-app:${{ github.sha }} . # Push Docker image - name: Push Docker image run: | docker push ${{ secrets.DOCKER_USERNAME }}/donetick:${{ github.sha }} + docker push ${{ secrets.DOCKER_USERNAME }}/donetick:latest @@ -7,7 +7,7 @@ COPY go.mod go.sum ./ RUN go mod download && go mod verify COPY . . -RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w " -buildvcs=false -o /donetick-core - -EXPOSE 8080 -CMD ["donetick-core"]
\ No newline at end of file +RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w " -buildvcs=false -o /donetick +ENV DT_ENV="selfhosted" +EXPOSE 2021 +CMD ["donetick"]
\ No newline at end of file |