Skip to content

Commit

Permalink
chore(lint): dockerfile pick a version
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Privitere <[email protected]>
  • Loading branch information
cprivitere committed Oct 20, 2023
1 parent b056ab1 commit f1cf250
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM golang:latest as build
# syntax=docker/dockerfile:1
FROM golang:1 as build
WORKDIR /code
COPY . .
# Need to manually bump this before each release
ENV ACTION_VERSION=0.12.1
ENV CGO_ENABLED=0
RUN go build -ldflags "-X 'github.com/equinix-labs/metal-project-action/internal.version=${ACTION_VERSION}'"

FROM alpine:latest
FROM alpine:3
COPY --from=build /code/metal-project-action /bin/metal-project-action
CMD ["metal-project-action"]
26 changes: 13 additions & 13 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ description: >
inputs:
projectName:
description: >
Equinix Metal Project Name. A name will be generated from the Git SHA if
not provided.
Equinix Metal Project Name. A name will be generated from the Git SHA if
not provided.
required: false
default: ''
default: ""
organizationID:
description: >
Equinix Metal Organization ID for the Project. The default organization
for the user will be used by the API if this is not provided.
required: false
userToken:
description: 'The user API key to use when creating the project.'
description: "The user API key to use when creating the project."
required: true
enableBGP:
description: 'Set this to "true" in order to enable BGP on the project'
required: false
default: 'false'
default: "false"
outputs:
projectID:
description: 'The UUID of the created project'
description: "The UUID of the created project"
projectName:
description: 'The name of the created project'
description: "The name of the created project"
projectToken:
description: 'A Project API key restricted to the new project'
description: "A Project API key restricted to the new project"
projectSSHPrivateKeyBase64:
description: >
A private SSH key (base64 encoded to preserve new lines) authorized as
Expand All @@ -37,10 +37,10 @@ outputs:
A public SSH key authorized as root on devices created in the created
project.
organizationID:
description: 'The Equinix Metal Organization ID for the created project'
description: "The Equinix Metal Organization ID for the created project"
runs:
using: 'docker'
image: 'Dockerfile'
using: "docker"
image: "Dockerfile"
branding:
icon: 'folder-plus'
color: 'green'
icon: "folder-plus"
color: "green"

0 comments on commit f1cf250

Please sign in to comment.