diff --git a/.github/actions/publish-to-jamsocket/action.yml b/.github/actions/publish-to-jamsocket/action.yml index 109c5ca..3944f75 100644 --- a/.github/actions/publish-to-jamsocket/action.yml +++ b/.github/actions/publish-to-jamsocket/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 diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 610ad0b..da4fe70 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -23,6 +23,7 @@ jobs: jamsocket_service: renaissance-earth docker_build_context: ./server dockerfile_path: ./server/Dockerfile.jamsocket + docker_tag: mycustomtag # name: Test Publish to Jamsocket Action