Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Gateway #31

Merged
merged 3 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/user.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: User Microservice CI/CD

on:
push:
branches: [user]
pull_request:
branches: [dev, main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.3

- name: Build
run: cd services/user && go build .

test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@master
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.3

- name: Execute tests
run: cd services/user && go test -v .

publish:
runs-on: ubuntu-latest
needs: [build, test]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./services/
file: ./services/user/Dockerfile
push: true
tags: floriaaan/goodfood-user:latest
1 change: 1 addition & 0 deletions services/user/proto
Loading