Skip to content

Commit

Permalink
Full workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Helmecke committed Aug 22, 2019
1 parent c0acc4c commit a062862
Showing 1 changed file with 30 additions and 7 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
name: Docker Image CI
on: push
name: Build and Publish
jobs:
build:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file Dockerfile --tag base
- name: Print environment variables
run: printenv
- uses: actions/checkout@v1
- name: Test
uses: actions/action-builder/shell@master
with:
entrypoint: make
args: test
- name: Lint
uses: actions/action-builder/shell@master
with:
entrypoint: make
args: lint
- name: Build
uses: actions/action-builder/docker@master
with:
entrypoint: make
args: build
- name: Docker Login
uses: actions/docker/login@master
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_REGISTRY_URL: "docker.pkg.github.com"
- name: Publish
uses: actions/action-builder/docker@master
with:
entrypoint: make
args: publish

0 comments on commit a062862

Please sign in to comment.