Skip to content

Commit b12f706

Browse files
committed
Include Dockerfile for packer validate action.
It uses Hashicorp packer base Docker image version v1.3.5
1 parent 03de574 commit b12f706

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

Diff for: .gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Packer template
2+
# Cache objects
3+
packer_cache/
4+
5+
# For built boxes
6+
*.box
7+
8+
.idea/*
9+

Diff for: Dockerfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM hashicorp/packer:1.3.5
2+
3+
LABEL "com.github.actions.name" = "packer-validate"
4+
LABEL "com.github.actions.description" = "Validate packer template file in a directory"
5+
LABEL "com.github.actions.icon" = "alert-circle"
6+
LABEL "com.github.actions.color" = "orange"
7+
8+
LABEL "repository" = "https://github.com/dawitnida/packer-github-actions"
9+
LABEL "homepage" = "https://github.com/dawitnida/packer-github-actions"
10+
LABEL "maintainer" = "Dawit Nida <[email protected]>"
11+
12+
RUN apk --no-cache add jq
13+
14+
COPY entrypoint.sh /entrypoint.sh
15+
RUN chmod +x /entrypoint.sh
16+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)