Skip to content

Commit d310544

Browse files
committed
Unifying the github release actions.
1 parent 51c383d commit d310544

File tree

2 files changed

+21
-33
lines changed

2 files changed

+21
-33
lines changed

.github/workflows/docker-image.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/python-publish.yml renamed to .github/workflows/release.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
9-
name: Upload Python Package
1+
name: Release
102

113
on:
124
release:
135
types: [published]
146

157
jobs:
8+
169
deploy:
1710

1811
runs-on: ubuntu-latest
@@ -34,3 +27,22 @@ jobs:
3427
with:
3528
user: __token__
3629
password: ${{ secrets.PYPI_API_TOKEN }}
30+
31+
build:
32+
33+
runs-on: ubuntu-latest
34+
35+
needs: deploy
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Docker login
40+
env:
41+
DOCKER_USER: ${{secrets.DOCKER_USER}}
42+
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
43+
run: |
44+
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
45+
- name: Build the Docker image
46+
run: docker build . --file releng/Dockerfile --tag aiplanning/planutils:latest
47+
- name: Docker Push
48+
run: docker push aiplanning/planutils:latest

0 commit comments

Comments
 (0)