Closed rberrelleza closed 5 years ago
This is how it would look like.
Actions are:
Currently, the deploy action is useful only if there's a single image to change. I think is a good. way to start.
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: ramiro
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- uses: okteto/actions/build@ead94eebc458d04da3df30d5becead34db1a0be7
with:
token: ${{ secrets.OKTETO_TOKEN }}
tag: ramiro/actions-test:${{ github.sha }}
- uses: okteto/actions/namespace@ead94eebc458d04da3df30d5becead34db1a0be7
id: namespace
with:
token: ${{ secrets.OKTETO_TOKEN }}
namespace: actions-rberrelleza
- uses: okteto/actions/deploy@e29e538895e1566e139b001df881960cf4c0edd8
env:
KUBECONFIG: ${{ steps.namespace.outputs.kubeconfig }}
with:
namespace: actions-rberrelleza
manifest: k8s.yml
image: ramiro/actions-test
tag: ${{ github.sha }}
waitOn: deployment/hello-world
:heart: :heart: :heart: