Skip to content

Commit

Permalink
Create 3.7.3 action
Browse files Browse the repository at this point in the history
  • Loading branch information
abatilo committed May 30, 2019
1 parent bfadc21 commit 3aedb88
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
.github
LICENSE
README.md
9 changes: 9 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
workflow "Main workflow" {
on = "push"
resolves = ["docker-build"]
}

action "docker-build" {
uses = "actions/docker/cli@master"
args = "build -t abatilo/actions-poetry ."
}
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.7.3-stretch

LABEL "com.github.actions.name"="poetry - Python"
LABEL "com.github.actions.description"="GitHub Actions for Python projects using poetry"
LABEL "com.github.actions.icon"="package"
LABEL "com.github.actions.color"="blue"

LABEL "repository"="https://github.com/abatilo/actions-poetry"
LABEL "homepage"="https://github.com/abatilo/actions-poetry"
LABEL "maintainer"="abatilo"

RUN pip install poetry==0.12.16

ENTRYPOINT [ "/usr/local/bin/poetry" ]
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
# actions-poetry
GitHub Actions for Python projects using poetry

[![license](https://img.shields.io/github/license/abatilo/actions-poetry.svg)](https://github.com/abatilo/actions-poetry/blob/master/LICENSE)
[![release](https://img.shields.io/github/release/abatilo/actions-poetry.svg)](https://github.com/abatilo/actions-poetry/releases/latest)
[![GitHub release date](https://img.shields.io/github/release-date/abatilo/actions-poetry.svg)](https://github.com/abatilo/actions-poetry/releases)

- [sdispater/poetry: Python dependency management and packaging made easy.](https://github.com/sdispater/poetry)

## Getting started

| Branch | Base image |
| ------ | ---------------------- |
| 3.7.3 | `python:3.7.3-stretch` |

### Create `main.workflow`

```hcl
workflow "Python workflow" {
on = "push"
resolves = ["publish"]
}
action "publish" {
needs = "poetry-build"
uses = "abatilo/[email protected]"
args = ["publish", "--build", "--no-interaction", "-vv", "--username", "$PYPI_USERNAME", "--password", "$PYPI_PASSWORD"]
}
```

## License

[MIT License - abatilo/actions-poetry]

[MIT License - abatilo/actions-poetry]: https://github.com/abatilo/actions-poetry/blob/master/LICENSE


## About the author

- [abatilo's homepage](https://www.aaronbatilo.dev/)

0 comments on commit 3aedb88

Please sign in to comment.