Skip to content

Commit

Permalink
Add Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielboliveira committed Feb 19, 2020
1 parent 0adb71a commit de4bf7f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@master

- name: Build image
run: docker build --pull -t fireworkweb/chromedriver:latest .

- name: Test docker images
run: |
docker run fireworkweb/chromedriver:latest chromedriver -v
- name: Push to Hub
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: |
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
docker push fireworkweb/chromedriver:latest

0 comments on commit de4bf7f

Please sign in to comment.