Skip to content

Commit 56954b1

Browse files
Create docker.yml
1 parent 83fa4fd commit 56954b1

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/docker.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
- name: Build and push Docker images
2+
# You may pin to the exact commit or the version.
3+
# uses: docker/build-push-action@7f9d37fa544684fb73bfe4835ed7214c255ce02b
4+
uses: docker/build-push-action@v2.9.0
5+
with:
6+
# List of a customs host-to-IP mapping (e.g., docker:10.180.0.1)
7+
add-hosts: # optional
8+
# List of extra privileged entitlement (e.g., network.host,security.insecure)
9+
allow: # optional
10+
# List of build-time variables
11+
build-args: # optional
12+
# Builder instance
13+
builder: # optional
14+
# List of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir)
15+
cache-from: # optional
16+
# List of cache export destinations for buildx (e.g., user/app:cache, type=local,dest=path/to/dir)
17+
cache-to: # optional
18+
# Optional parent cgroup for the container used in the build
19+
cgroup-parent: # optional
20+
# Build's context is the set of files located in the specified PATH or URL
21+
context: # optional
22+
# Path to the Dockerfile
23+
file: # optional
24+
# List of metadata for an image
25+
labels: # optional
26+
# Load is a shorthand for --output=type=docker
27+
load: # optional, default is false
28+
# Set the networking mode for the RUN instructions during build
29+
network: # optional
30+
# Do not use cache when building the image
31+
no-cache: # optional, default is false
32+
# List of output destinations (format: type=local,dest=path)
33+
outputs: # optional
34+
# List of target platforms for build
35+
platforms: # optional
36+
# Always attempt to pull a newer version of the image
37+
pull: # optional, default is false
38+
# Push is a shorthand for --output=type=registry
39+
push: # optional, default is false
40+
# List of secrets to expose to the build (e.g., key=string, GIT_AUTH_TOKEN=mytoken)
41+
secrets: # optional
42+
# List of secret files to expose to the build (e.g., key=filename, MY_SECRET=./secret.txt)
43+
secret-files: # optional
44+
# Size of /dev/shm (e.g., 2g)
45+
shm-size: # optional
46+
# List of SSH agent socket or keys to expose to the build
47+
ssh: # optional
48+
# List of tags
49+
tags: # optional
50+
# Sets the target stage to build
51+
target: # optional
52+
# Ulimit options (e.g., nofile=1024:1024)
53+
ulimit: # optional
54+
# GitHub Token used to authenticate against a repository for Git context
55+
github-token: # optional, default is ${{ github.token }}

0 commit comments

Comments
 (0)