Skip to content

Update deps

Update deps #12

Workflow file for this run

---
name: Docker build CI
'on':
push:
branches:
- master
jobs:
build:
name: build
runs-on: ubuntu-latest
timeout-minutes: 10
services:
postgres:
image: postgres:18
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 2s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
cache: true
- name: go vet
run: go vet ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.11.4
- name: Tests
run: make test
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push API image
uses: docker/build-push-action@v7
with:
push: true
tags: pyazo/api:latest
cache-from: type=gha
cache-to: type=gha,mode=max