Skip to content

Commit

Permalink
Run CI for Go
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Feb 10, 2024
1 parent 3997e05 commit d5d45b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,11 @@ jobs:
run: make init

- name: Check for changes in golang directory
id: check-changes
run: |
if git diff --name-only ${{ github.sha }} | grep 'golang/'; then
echo "Changes detected in golang directory"
echo "::set-output name=go_changes_detected::true"
sed -i 's|build: ruby/|build: golang/|' ./webapp/compose.yml
fi
- name: Update compose.yml if changes are detected
if: steps.check-changes.outputs.go_changes_detected == 'true'
run: |
sed -i 's|build: ruby/|build: golang/|' ./webapp/compose.yml
- name: Start the server
run: |
cd webapp
Expand Down
2 changes: 1 addition & 1 deletion webapp/golang/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21
FROM golang:1.22

RUN mkdir -p /home/webapp
WORKDIR /home/webapp
Expand Down

0 comments on commit d5d45b2

Please sign in to comment.