Skip to content

Commit 40b324b

Browse files
committed
Added push to cloud run
1 parent aba2a4e commit 40b324b

File tree

10 files changed

+53
-4
lines changed

10 files changed

+53
-4
lines changed

.github/workflows/deploy.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up QEMU
14+
uses: docker/setup-qemu-action@v2
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v2
17+
- name: Login to ghcr.io
18+
uses: docker/login-action@v2
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.repository_owner }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
- name: Build and push
24+
uses: docker/build-push-action@v3
25+
with:
26+
push: true
27+
tags: ghcr.io/a2go/slides:latest
28+
- name: Authenticate gcloud
29+
uses: google-github-actions/auth@v0
30+
with:
31+
workload_identity_provider: projects/253413868906/locations/global/workloadIdentityPools/github/providers/github
32+
service_account: [email protected]
33+
- name: Deploy to Cloud Run
34+
uses: google-github-actions/deploy-cloudrun@v0
35+
with:
36+
image: ghcr.io/a2go/slides:latest
37+
service: slides

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM golang:1.18-alpine
2+
3+
WORKDIR /data
4+
5+
RUN apk add --no-cache git
6+
RUN go install golang.org/x/tools/cmd/present@latest
7+
8+
COPY . .
9+
10+
EXPOSE 8080
11+
12+
ENTRYPOINT ["/go/bin/present", "-base", "/go/pkg/mod/golang.org/x/[email protected]/cmd/present", "-use_playground", "-content", "/data", "-http", ":8080"]

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ To access these slides, use the `present` tool in the project directory:
44

55
```bash
66
go install golang.org/x/tools/cmd/present@latest
7-
~/go/bin/present -base ~/go/src/golang.org/x/tools/cmd/present -use_playground -content .
7+
~/go/bin/present -base ~/go/src/golang.org/x/tools/cmd/present -use_playground -content presentations
88
```
99

10-
1. [A2Go 06-21-2022](06-21-2022/README.md)
10+
1. [A2Go 06-21-2022](presentations/06-21-2022/README.md)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

06-21-2022/meetup.slide renamed to presentations/06-21-2022/meetup.slide

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ A2Go Organizers
1212
Thank you for joining us at the first meetup of 2022! We will be resuming
1313
A2Go meetups at [Cahoots](https://cahoots.com/) on the 3rd Tuesday of each month from 6-8pm.
1414

15-
.image ../common/img/Website-Icon.png 300 _
15+
.image ../../common/img/Website-Icon.png 300 _
1616

1717
Signup on our [Meetup Page](https://www.meetup.com/A2Go-Golang-developer-meetup/?_cookie-check=rQ5_zB-YVm9IWsBn) for reminders
1818
and to stay in touch with us.
1919

2020
## Sponsors
2121

22-
.image ../common/img/Cahoots-Pride.jpeg 450 _
22+
.image ../../common/img/Cahoots-Pride.jpeg 450 _
2323

2424
If you are interested in sponsoring, please message our organizers on [Meetup](https://www.meetup.com/A2Go-Golang-developer-meetup/?_cookie-check=rQ5_zB-YVm9IWsBn) or come talk to us afterwards!

0 commit comments

Comments
 (0)