Skip to content

Commit 1f5608c

Browse files
Update docker-image.yml
1 parent 4585064 commit 1f5608c

File tree

1 file changed

+21
-55
lines changed

1 file changed

+21
-55
lines changed

.github/workflows/docker-image.yml

Lines changed: 21 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,21 @@
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 }}
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Build the Docker image
19+
run: docker build . --file Dockerfile --tag Garrettiscool101/zphisher:latest
20+
- name: Push the Docker image
21+
run: docker login -u ijn35807 -p ${{ secrets.DOCKER_TOKEN }} && docker push Garrettiscool101/zphisher:latest

0 commit comments

Comments
 (0)