refactor: rename datastore files #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD Pipeline | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Run tests | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Go test | |
run: go test ./... -race | |
docker: | |
needs: test | |
runs-on: ubuntu-latest | |
name: Deliver to Docker Hub | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Login to GHCR | |
run: | | |
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u flohansen --password-stdin | |
- name: Docker build | |
run: | | |
docker build -t ghcr.io/flohansen/dasher-server:latest -f build/server.dockerfile . | |
- name: Docker push | |
run: | | |
docker push ghcr.io/flohansen/dasher-server:latest |