Skip to content

Commit 34b34b1

Browse files
authored
Create docker-latest.yml
1 parent a75550d commit 34b34b1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Docker latest
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-22.04
8+
if: startsWith(github.ref, 'refs/heads/main')
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: docker/login-action@v1.12.0
12+
with:
13+
username: dprohe
14+
password: ${{ secrets.DOCKERHUB_TOKEN }}
15+
- uses: docker/build-push-action@v2.8.0
16+
with:
17+
push: true
18+
tags: dprohe/sdynpy:latest
19+
- run: sleep 500s
20+
test:
21+
needs: build
22+
runs-on: ubuntu-22.04
23+
container: dprohe/sdynpy
24+
steps:
25+
- run: python -m pytest --verbose src/sdynpy

0 commit comments

Comments
 (0)