Skip to content

Commit

Permalink
ci: remove openfaas/faas-cli:latest-root
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Oct 31, 2023
1 parent 6c8ec94 commit 9d4ba82
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/vultr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup OpenFaaS
run: curl -sSL https://cli.openfaas.com | sudo -E sh

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -29,14 +32,10 @@ jobs:
run: cd ./das-infra-stack-vultr

- name: Pull template
uses: docker://openfaas/faas-cli:latest-root
with:
args: template store pull python3
run: faas-cli template store pull python3

- name: Run shrinkwrap build
uses: docker://openfaas/faas-cli:latest-root
with:
args: build -f ${{ env.DEPLOYMENT_FILE }}
run: faas-cli build -f ${{ env.DEPLOYMENT_FILE }}

- name: Login to DockerHub
if: success()
Expand All @@ -46,20 +45,17 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push Image to Registry
uses: docker://openfaas/faas-cli:latest-root
with:
args: push -f ${{ env.DEPLOYMENT_FILE }}
run: faas-cli push -f ${{ env.DEPLOYMENT_FILE }}

deploy:
runs-on: ubuntu-latest
steps:
- name: Setup OpenFaaS
run: curl -sSL https://cli.openfaas.com | sudo -E sh

- name: Login to OpenFaaS Gateway
uses: docker://openfaas/faas-cli:latest-root
with:
args: login -p ${{ secrets.OPENFAAS_GATEWAY_PASSWD }} \
-g ${{ secrets.OPENFAAS_GATEWAY }}
run: faas-cli login -p ${{ secrets.OPENFAAS_GATEWAY_PASSWD }} \
-g ${{ secrets.OPENFAAS_GATEWAY }}

- name: Deploy the function
uses: docker://openfaas/faas-cli:latest-root
with:
args: deploy -f ${{ env.DEPLOYMENT_FILE }}
run: faas-cli deploy -f ${{ env.DEPLOYMENT_FILE }}

0 comments on commit 9d4ba82

Please sign in to comment.