Skip to content

Merge pull request #12 from printeers/feature/upgrade-dependencies #43

Merge pull request #12 from printeers/feature/upgrade-dependencies

Merge pull request #12 from printeers/feature/upgrade-dependencies #43

Workflow file for this run

name: Check golangci lint and publish docker images on main branch
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
packages: write
jobs:
golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: touch internal/embedded/migra/migra
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.1
build-and-push-images:
needs: golangci
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build migra
run: ./internal/embedded/migra/build-migra.sh
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push trek Docker image
uses: docker/build-push-action@v2
with:
context: .
pull: true
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/printeers/trek:nightly
- name: Build and push trek Docker image
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile.pgmodeler
pull: true
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/printeers/trek:nightly-pgmodeler