forked from cadey/xesite
Update/go1.13.3 (#87)
* Update to go 1.13.3, remove old files, ping bing/google search * remove old lines, oops
This commit is contained in:
parent
fae0178698
commit
267176954f
|
@ -62,3 +62,14 @@ jobs:
|
||||||
uses: docker://lachlanevenson/k8s-kubectl
|
uses: docker://lachlanevenson/k8s-kubectl
|
||||||
with:
|
with:
|
||||||
args: --kubeconfig=/github/workspace/.kubeconfig rollout status -n apps deployment/christinewebsite
|
args: --kubeconfig=/github/workspace/.kubeconfig rollout status -n apps deployment/christinewebsite
|
||||||
|
- name: Ping Google
|
||||||
|
uses: docker://lachlanevenson/k8s-kubectl
|
||||||
|
with:
|
||||||
|
args: --kubeconfig=/github/workspace/.kubeconfig apply -f /github/workspace/k8s/job/yml
|
||||||
|
- name: Sleep
|
||||||
|
run: |
|
||||||
|
sleep 5
|
||||||
|
- name: Don't Ping Google
|
||||||
|
uses: docker://lachlanevenson/k8s-kubectl
|
||||||
|
with:
|
||||||
|
args: --kubeconfig=/github/workspace/.kubeconfig delete -f /github/workspace/k8s/job/yml
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM xena/go:1.12.6 AS build
|
FROM xena/go:1.13.3 AS build
|
||||||
ENV GOPROXY https://cache.greedo.xeserv.us
|
ENV GOPROXY https://cache.greedo.xeserv.us
|
||||||
COPY . /site
|
COPY . /site
|
||||||
WORKDIR /site
|
WORKDIR /site
|
||||||
|
@ -7,7 +7,6 @@ RUN CGO_ENABLED=0 GOBIN=/root go install -v ./cmd/site
|
||||||
|
|
||||||
FROM xena/alpine
|
FROM xena/alpine
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
RUN apk add --no-cache bash
|
|
||||||
WORKDIR /site
|
WORKDIR /site
|
||||||
COPY --from=build /root/site .
|
COPY --from=build /root/site .
|
||||||
COPY ./static /site/static
|
COPY ./static /site/static
|
||||||
|
@ -15,7 +14,5 @@ COPY ./templates /site/templates
|
||||||
COPY ./blog /site/blog
|
COPY ./blog /site/blog
|
||||||
COPY ./talks /site/talks
|
COPY ./talks /site/talks
|
||||||
COPY ./css /site/css
|
COPY ./css /site/css
|
||||||
COPY ./app /app
|
|
||||||
COPY ./app.json .
|
|
||||||
HEALTHCHECK CMD wget --spider http://127.0.0.1:5000/.within/health || exit 1
|
HEALTHCHECK CMD wget --spider http://127.0.0.1:5000/.within/health || exit 1
|
||||||
CMD ./site
|
CMD ./site
|
||||||
|
|
7
app.json
7
app.json
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"scripts": {
|
|
||||||
"dokku": {
|
|
||||||
"postdeploy": "curl https://www.google.com/ping?sitemap=https://christine.website/sitemap.xml"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
/ Christine
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: christinewebsite-ping
|
||||||
|
namespace: apps
|
||||||
|
labels:
|
||||||
|
app: christinewebsite
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: ping-bing
|
||||||
|
image: xena/alpine
|
||||||
|
command:
|
||||||
|
- "busybox"
|
||||||
|
- "wget"
|
||||||
|
- "-O"
|
||||||
|
- "-"
|
||||||
|
- "-q"
|
||||||
|
- "https://www.bing.com/ping?sitemap=https://christine.website/sitemap.xml"
|
||||||
|
- name: ping-google
|
||||||
|
image: xena/alpine
|
||||||
|
command:
|
||||||
|
- "busybox"
|
||||||
|
- "wget"
|
||||||
|
- "-O"
|
||||||
|
- "-"
|
||||||
|
- "-q"
|
||||||
|
- "https://www.google.com/ping?sitemap=https://christine.website/sitemap.xml"
|
||||||
|
restartPolicy: Never
|
||||||
|
backoffLimit: 4
|
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
docker build .
|
|
||||||
git push dokku master
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
|
|
||||||
git remote add dokku dokku@minipaas.xeserv.us:christine
|
|
Loading…
Reference in New Issue