Skip to content

Commit 100a412

Browse files
Add Github Actions
1 parent 7a428c7 commit 100a412

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
13+
- package-ecosystem: "docker"
14+
directory: "/"
15+
schedule:
16+
interval: "daily"
17+

.github/workflows/docker.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
18+
-
19+
name: Set up QEMU
20+
uses: docker/setup-qemu-action@v1
21+
22+
-
23+
name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v1.6.0
25+
26+
-
27+
name: Login to DockerHub
28+
uses: docker/login-action@v1.12.0
29+
with:
30+
username: ${{ secrets.DOCKERHUB_USERNAME }}
31+
password: ${{ secrets.DOCKERHUB_TOKEN }}
32+
33+
-
34+
name: Build and push
35+
id: docker_build
36+
uses: docker/build-push-action@v2
37+
with:
38+
push: true
39+
tags: uspgamedev/nginx:latest

0 commit comments

Comments
 (0)