mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2024-11-22 00:01:08 +07:00
Add Docker test
This commit is contained in:
parent
4bb6d67f62
commit
c1107f97e5
34
.github/workflows/test.yml
vendored
34
.github/workflows/test.yml
vendored
@ -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 }}
|
||||
|
@ -1,4 +1,5 @@
|
||||
FROM node:13-alpine
|
||||
LABEL version=1.1.0
|
||||
ADD ./app /app
|
||||
WORKDIR /app
|
||||
RUN cd /app && npm i
|
||||
|
Loading…
Reference in New Issue
Block a user