Skip to content

Commit

Permalink
GitHub Actions for build and push Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Oct 12, 2020
1 parent 1c24176 commit bf50031
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
# TODO v2 is almost out with new syntax
- name: Build-Push-DockerHub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: justb4/awstats
tags: latest,7.6-1
tag_with_ref: false
tag_with_sha: true

0 comments on commit bf50031

Please sign in to comment.