Skip to content

A simple image with only FaaS-CLI and Docker in Docker! Useful for CI/CD of OpenFaaS functions.

License

Notifications You must be signed in to change notification settings

thomas-anderson-bsl/faas-cli-dind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

faas-cli-dind

Docker Cloud Automated build Docker Cloud Build Status

Docker image with faas-cli and Docker in Docker! Useful for CI/CD of OpenFaaS functions.

Usage with Gitlab CI

# .gitlab-ci.yml

stages:
    - build

build-and-deploy-function:
    stage: build
    image: "$DOCKER_REGISTRY_URL/thomas-anderson-bsl/faas-cli-dind:latest"
    script:
        - faas-cli build --tag=sha
        - echo -n "$DOCKER_REGISTRY_PASSWORD" | docker login --username "$DOCKER_REGISTRY_USERNAME" --password-stdin "$DOCKER_REGISTRY_URL"
        - faas-cli push --tag=sha
        - echo -n "$OPENFAAS_PASSWORD" | faas-cli login --gateway "$OPENFAAS_URL" --username "$OPENFAAS_USERNAME" --password-stdin
        - faas-cli deploy --gateway "$OPENFAAS_URL" --tag=sha --send-registry-auth

About

A simple image with only FaaS-CLI and Docker in Docker! Useful for CI/CD of OpenFaaS functions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published