-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Readme Update Blog | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
update-blog: | ||
name: Update latest blogs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Fetch medium.com posts | ||
uses: ./ | ||
with: | ||
rss_list: "https://imskr.medium.com/feed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
FROM golang:1.18-alpine | ||
FROM ubuntu:latest | ||
|
||
RUN apk add -q --update \ | ||
&& apk add -q \ | ||
bash \ | ||
git \ | ||
curl \ | ||
&& rm -rf /var/cache/apk/* | ||
RUN apt-get update | ||
RUN apt-get install -y wget git gcc bash | ||
|
||
# Copy all the files from the host into the container | ||
WORKDIR /src | ||
COPY . . | ||
RUN wget -P /tmp https://dl.google.com/go/go1.18.linux-amd64.tar.gz | ||
|
||
# Enable Go modules | ||
ENV GO111MODULE=on | ||
RUN tar -C /usr/local -xzf /tmp/go1.18.linux-amd64.tar.gz | ||
RUN rm /tmp/go1.18.linux-amd64.tar.gz | ||
|
||
# Compile the action | ||
RUN go build -o /bin/action | ||
ENV GOPATH /go | ||
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH | ||
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" | ||
|
||
# Specify the container's entrypoint as the action | ||
ENTRYPOINT ["/bin/action"] | ||
RUN go version | ||
|
||
WORKDIR /app | ||
COPY . /app/ | ||
|
||
# Start app | ||
ENTRYPOINT ["go", "run", "/app/main.go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters