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:
Cadey Ratio 2019-10-23 13:16:05 -04:00 committed by GitHub
parent fae0178698
commit 267176954f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 43 additions and 29 deletions

View File

@ -62,3 +62,14 @@ jobs:
uses: docker://lachlanevenson/k8s-kubectl
with:
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

View File

@ -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
COPY . /site
WORKDIR /site
@ -7,7 +7,6 @@ RUN CGO_ENABLED=0 GOBIN=/root go install -v ./cmd/site
FROM xena/alpine
EXPOSE 5000
RUN apk add --no-cache bash
WORKDIR /site
COPY --from=build /root/site .
COPY ./static /site/static
@ -15,7 +14,5 @@ COPY ./templates /site/templates
COPY ./blog /site/blog
COPY ./talks /site/talks
COPY ./css /site/css
COPY ./app /app
COPY ./app.json .
HEALTHCHECK CMD wget --spider http://127.0.0.1:5000/.within/health || exit 1
CMD ./site

View File

@ -1,7 +0,0 @@
{
"scripts": {
"dokku": {
"postdeploy": "curl https://www.google.com/ping?sitemap=https://christine.website/sitemap.xml"
}
}
}

View File

@ -1 +0,0 @@
/ Christine

31
k8s/job.yml Normal file
View File

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

4
run.sh
View File

@ -1,4 +0,0 @@
#!/bin/sh
cd /site
./site

View File

@ -1,7 +0,0 @@
#!/bin/sh
set -e
set -x
docker build .
git push dokku master

View File

@ -1,6 +0,0 @@
#!/bin/sh
set -e
set -x
git remote add dokku dokku@minipaas.xeserv.us:christine