Update Docker image names and build process to align with project requirements and conventions.

This commit is contained in:
Mo Tarbin 2024-09-05 22:42:25 -04:00
parent 99ae58347d
commit e0ad791e3f
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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"]
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w " -buildvcs=false -o /donetick
ENV DT_ENV="selfhosted"
EXPOSE 2021
CMD ["donetick"]