Skip to content

Commit

Permalink
Merge pull request #50 from openhacku-team-a/revert-49-ci-go-cache-build
Browse files Browse the repository at this point in the history
Revert "CIの高速化"
  • Loading branch information
Shion1305 authored Mar 16, 2024
2 parents 384e124 + c24ce7b commit 492cd15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/deploy-cloudrun-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
cache: true

- name: Download Go modules
shell: bash
if: ${{ steps.setup-go.outputs.cache-hit != 'true' }}
run: go mod download

- name: Login to Google Cloud
id: auth
uses: google-github-actions/auth@v2
Expand All @@ -53,10 +42,6 @@ jobs:
echo "ENV_LOCATION=./setting-release.yaml" > .env
echo "${{ secrets.ENV_YAML }}" > ./setting-release.yaml
- name: Build Go App
run: |
go build -o ./main ./svc/cmd/dev/main.go
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions cloudrun/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ FROM golang:1.22-alpine3.19

WORKDIR /app

COPY ./main /app/main
COPY ./.env /app/.env
COPY ./setting-release.yaml /app/setting-release.yaml
COPY ./ ./

RUN go build -o main ./svc/cmd/dev/main.go

EXPOSE 8080
CMD ["./main"]
Expand Down

0 comments on commit 492cd15

Please sign in to comment.