Skip to content

Commit

Permalink
ci: publish docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev authored Apr 23, 2020
1 parent a642e46 commit c121fd5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Docker Image CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag sundowndev/phoneinfoga:$(date +%s)
- uses: actions/checkout@master
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: sundowndev/phoneinfoga
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

0 comments on commit c121fd5

Please sign in to comment.