Skip to content

Commit bf50031

Browse files
committed
GitHub Actions for build and push Docker Hub
1 parent 1c24176 commit bf50031

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# This workflow contains a single job called "build"
14+
build:
15+
# The type of runner that the job will run on
16+
runs-on: ubuntu-latest
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
- uses: actions/checkout@v2
21+
# TODO v2 is almost out with new syntax
22+
- name: Build-Push-DockerHub
23+
uses: docker/build-push-action@v1
24+
with:
25+
username: ${{ secrets.DOCKER_USERNAME }}
26+
password: ${{ secrets.DOCKER_PASSWORD }}
27+
repository: justb4/awstats
28+
tags: latest,7.6-1
29+
tag_with_ref: false
30+
tag_with_sha: true

0 commit comments

Comments
 (0)