diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..cdd849c --- /dev/null +++ b/action.yml @@ -0,0 +1,30 @@ +name: setup-buildx +description: | + Wrapper around docker/setup-buildx-action that defaults to the in-cluster + buildkit service running in the gitea namespace of the aceofbase cluster. + Lets workflow authors skip the boilerplate of pointing setup-buildx at a + remote driver. + +inputs: + endpoint: + description: 'BuildKit TCP endpoint. Defaults to the in-cluster service.' + required: false + default: 'tcp://buildkit.gitea.svc.cluster.local:1234' + install: + description: 'Set up docker build as alias to docker buildx build.' + required: false + default: 'false' + version: + description: 'buildx version to install (passed through).' + required: false + default: 'latest' + +runs: + using: composite + steps: + - uses: docker/setup-buildx-action@v3 + with: + driver: remote + endpoint: ${{ inputs.endpoint }} + install: ${{ inputs.install }} + version: ${{ inputs.version }}