Merge pull request #81 from anyulled/main #200
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: C4P Service - Service Pipeline | |
env: | |
KO_DOCKER_REPO: docker.io/salaboy | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
publish: | |
name: C4P Service - Service Pipeline | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20.x' | |
- uses: actions/checkout@v2 | |
- uses: dorny/paths-filter@v2 #https://github.com/dorny/paths-filter | |
id: changes | |
with: | |
filters: | | |
src: | |
- 'conference-application/c4p-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/c4p-service && ko build -t v0.9.9-gh |