Add Docker test

This commit is contained in:
Corey Butler 2020-04-01 21:27:59 -05:00
parent 4bb6d67f62
commit c1107f97e5
2 changed files with 31 additions and 4 deletions

View File

@ -6,8 +6,8 @@ on:
- master
jobs:
test:
name: Test Suite
package:
name: Test Suite - Package Strategy
runs-on: ubuntu-latest
steps:
# Checkout updated source code
@ -18,7 +18,7 @@ jobs:
id: autotagger
uses: butlerlogic/action-autotag@master
with:
tag_prefix: 'test_'
tag_prefix: 'test_package_'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -28,4 +28,30 @@ jobs:
with:
tag: ${{ steps.autotagger.outputs.tagname }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
name: Test Suite - Docker Strategy
runs-on: ubuntu-latest
steps:
# Checkout updated source code
- uses: actions/checkout@v2
# If the version has changed, create a new git tag for it.
- name: Tag
id: autotagger
uses: butlerlogic/action-autotag@master
with:
strategy: docker
tag_prefix: 'test_docker_'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Rollback Release
if: success() && ${{ steps.autotagger.outputs.tagcreated }} = "yes"
uses: author/action-rollback@stable
with:
tag: ${{ steps.autotagger.outputs.tagname }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,4 +1,5 @@
FROM node:13-alpine
LABEL version=1.1.0
ADD ./app /app
WORKDIR /app
RUN cd /app && npm i