Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 972 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 972 Bytes

Create a Namespace Cloud cluster

This repository hosts a GitHub action that configures buildx to use a Namespace Cloud build cluster.

Example

jobs:
  docker:
    runs-on: ubuntu-latest
    # These permissions are needed to interact with GitHub's OIDC Token endpoint.
    permissions:
      id-token: write
      contents: read
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Configure access to Namespace
        uses: namespacelabs/nscloud-setup@v0
      - name: Configure buildx
        uses: namespacelabs/nscloud-setup-buildx-action@v0
      - name: Build and push
        uses: docker/build-push-action@v4
        with:
          push: true
          tags: user/app:latest

Requirements

This action uses nsc, the Namespace Cloud CLI. You can add it to your workflow using namespacelabs/nscloud-setup (see example).