Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up automated builds #4

Merged
merged 4 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Description



## Testing

- [ ] Passes unit tests on MacOS, linux, Windows (at least one required)
- [ ] Functional testing

Fixes #
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Conda build
on:
push:
branches:
- master
release:
types:
- created
repository_dispatch:
types:
- conda-build

jobs:
build-linux:
runs-on: ubuntu-latest
name: Build on Linux
steps:
- name: Login to GitHub Package Registry
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
- name: Pull Docker image
run: docker pull docker.pkg.github.com/sot/skare3/centos5-builder:latest
- name: Build
id: build
run: >
docker run --rm --name builder -v $GITHUB_WORKSPACE:/github/workspace -w /github/workspace
-e CONDA_PASSWORD -e GIT_USERNAME -e GIT_PASSWORD
docker.pkg.github.com/sot/skare3/centos5-builder:latest
${GITHUB_REPOSITORY} --tag ${GITHUB_SHA}
env:
CONDA_PASSWORD: ${{ secrets.CONDA_PASSWORD }}
GIT_USERNAME: chandra-xray
GIT_PASSWORD: ${{ secrets.CHANDRA_XRAY_TOKEN }}
GIT_ASKPASS: /home/aca/git_pass.py
- uses: sot/skare3_tools/actions/gdrive_upload@master
name: Upload to Google Drive
with:
files: |
builds/linux-64
builds/noarch
directory: /ska3/conda-test
options: --drive=cxc_ops
env:
GOOGLE_DRIVE_CREDENTIALS: ${{ secrets.GOOGLE_DRIVE_CREDENTIALS }}

26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release
on:
release:
types:
- created

jobs:
patch-release:
runs-on: ubuntu-latest
name: Patch Release
steps:
- name: Fetch Skare3 Tools
uses: actions/checkout@v2
with:
repository: sot/skare3_tools
ref: master
path: skare3_tools
- name: Release Description and Skare3 Issue
run: |
sudo pip3 install setuptools
sudo pip3 install -r ./skare3_tools/requirements.txt
sudo pip3 install ./skare3_tools
skare3-release-merge-info --user $GITHUB_ACTOR --repository $GITHUB_REPOSITORY --sha $GITHUB_SHA
skare3-create-issue --user $GITHUB_ACTOR --repository sot/skare3 --latest-release $GITHUB_REPOSITORY --label 'Package update'
env:
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}