Skip to content

Merge pull request #68 from AlexanderSCK/snyk-fix-94f03f009ec292e3dbc… #4

Merge pull request #68 from AlexanderSCK/snyk-fix-94f03f009ec292e3dbc…

Merge pull request #68 from AlexanderSCK/snyk-fix-94f03f009ec292e3dbc… #4

name: deploy-payments
on:
push:
branches:
- main
paths:
- 'payments/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- run: cd payments && docker build -t alexanderp99/payments .
- run: docker push alexanderp99/payments
- uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- run: doctl kubernetes cluster kubeconfig save ticketing
- run: kubectl rollout restart deployment payments-depl