Skip to content

Commit

Permalink
Adds Github Actions package publication + Docker Publication
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Sep 1, 2020
1 parent 7114d03 commit b1e80b9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<!--
/!\ IMPORTANT - DON'T IGNORE THIS OR YOUR ISSUE WILL BE IGNORED AS-WELL!!!!
If you are reporting a new issue, make sure that we do not have any duplicates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your issue and add a comment
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Image & Publish Package

on:
push:
tags:
- '*'

jobs:
build-docker-and-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Installing dependencies
run: |
sudo apt update && sudo apt install make -y
git clone https://github.com/estesp/manifest-tool && cd manifest-tool && git checkout v0.9.0 && sudo make && sudo make install && cd .. && rm -Rf manifest-tool
docker run --rm --privileged multiarch/qemu-user-static:register
sudo apt install -y qemu qemu-user-static qemu-user binfmt-support
echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_LOGIN }}" --password-stdin
sudo apt update && sudo apt install make python3-pip python3-setuptools -y
pip3 install twine
- name: Build package
run: make install
- name: Publish package
run: python3 -m twine upload dist/* -u "${{ secrets.PYPI_USERNAME }}" -p "${{ secrets.PYPI_PASSWORD }}"
- name: Build image
run: make build-docker
- name: Publish image
run: make publish-docker latest
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b1e80b9

Please sign in to comment.