Skip to content

Merge pull request #82 from fredpena/main #204

Merge pull request #82 from fredpena/main

Merge pull request #82 from fredpena/main #204

name: Notifications Service - Service Pipeline
env:
KO_DOCKER_REPO: docker.io/salaboy
on:
push:
branches: ['main']
jobs:
publish:
name: Notifications Service - Service Pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.21.x'
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2 #https://github.com/dorny/paths-filter
id: changes
with:
filters: |
src:
- 'conference-application/notifications-service/**'
- if: steps.changes.outputs.src == 'true'
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- if: steps.changes.outputs.src == 'true'
uses: ko-build/[email protected] #https://github.com/ko-build/setup-ko
- if: steps.changes.outputs.src == 'true'
env:
KO_DOCKER_REPO: docker.io/salaboy
run: cd conference-application/notifications-service && ko build -t v0.9.9-gh