diff --git a/README.md b/README.md index 92c434d..aa25e7e 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ The following options must be configured in order to make a deployment. As shown | jamsocket_service | The name of the Jamsocket service you are pushing your code to. | `with` | Yes | | docker_build_context | The path to the directory that your [Docker build should access](https://docs.docker.com/build/building/context/). This is often the directory the Dockerfile is in. | `with` | Yes | | dockerfile_path | The path to your Dockerfile. | `with` | Yes | +| docker_tag | A custom tag for your Docker image. | `with` | No | ## Deployment diff --git a/action.yml b/action.yml index 109c5ca..346ab8c 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,10 @@ inputs: dockerfile_path: description: 'Path to your Dockerfile' required: true + docker_tag: + description: 'Custom tag for your Docker image' + required: false + default: 'latest' runs: using: 'composite' steps: @@ -50,7 +54,7 @@ runs: with: images: new.jamcr.io/${{ inputs.jamsocket_account }}/${{ inputs.jamsocket_service }} tags: | - type=raw,value=latest + type=raw,value=${{ inputs.docker_tag }} - name: Build and push Docker image uses: docker/build-push-action@v5 @@ -59,7 +63,6 @@ runs: file: ${{ inputs.dockerfile_path }} push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} branding: icon: 'check-circle'