Skip to content

Commit c542d07

Browse files
authored
Create docker-versioned.yml
1 parent 34b34b1 commit c542d07

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docker versioned
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- name: Get tag
11+
id: tag
12+
uses: dawidd6/action-get-tag@v1
13+
with:
14+
strip_v: true
15+
- uses: actions/checkout@v3
16+
- uses: docker/login-action@v1.12.0
17+
with:
18+
username: dprohe
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
- uses: docker/build-push-action@v2.8.0
21+
with:
22+
push: true
23+
tags: |
24+
dprohe/sdynpy:${{steps.tag.outputs.tag}}
25+
dprohe/sdynpy:latest
26+
- run: sleep 500s
27+
test:
28+
needs: build
29+
runs-on: ubuntu-22.04
30+
container: dprohe/sdynpy
31+
steps:
32+
- run: python -m pytest --verbose src/sdynpy

0 commit comments

Comments
 (0)