Skip to content

Commit c0e8aae

Browse files
committed
Add feature for replies
1 parent 5e69e72 commit c0e8aae

File tree

5 files changed

+45
-3
lines changed

5 files changed

+45
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18-stretch
1+
FROM golang:1.18-alpine
22
RUN go install github.com/cespare/reflex@latest
33
COPY reflex.conf /
44
ENTRYPOINT ["reflex", "-c", "/reflex.conf"]
File renamed without changes.

.github/workflows/docker-image.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build docker image
2+
3+
on:
4+
create:
5+
tags:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: login to GitHub Container Registry
12+
uses: docker/login-action@v2
13+
with:
14+
username: svenlie
15+
password: ${{ secrets.DOCKER_TOKEN }}
16+
- uses: actions/checkout@v3
17+
- name: Build the imap2jira docker image
18+
run: docker build . --file ./Dockerfile --tag svenlie/imap2jira:${GITHUB_REF##*/} --tag gsvenlie/imap2jira:latest
19+
- name: Push imap2jira docker images
20+
run: docker push svenlie/imap2jira --all-tags

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# build stage
2+
FROM golang:1.18-alpine
3+
RUN mkdir -p /go/src/app
4+
5+
COPY service/go.* /go/src/app/
6+
WORKDIR /go/src/app
7+
RUN go mod download
8+
9+
WORKDIR /go/src/app
10+
ADD service/cmd cmd
11+
WORKDIR /go/src/app/cmd/server
12+
RUN go build -o app-server
13+
14+
# final stage
15+
FROM alpine:latest
16+
WORKDIR /app
17+
RUN apk --no-cache update
18+
RUN apk --no-cache upgrade
19+
RUN apk add --no-cache tzdata
20+
RUN cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
21+
RUN echo "Europe/Berlin" > /etc/timezone
22+
COPY --from="build-env" /go/src/app/cmd/server/app-server /app/
23+
ENTRYPOINT ./app-server

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ version: "3.7"
33
services:
44
imap2jira:
55
build:
6-
context: "docker"
6+
context: "."
77
dockerfile: Dockerfile
88
container_name: imap2jira
99
restart: always
10-
working_dir: /go/src/app
1110
env_file:
1211
- .env
1312
volumes:

0 commit comments

Comments
 (0)