-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add tapis token retrieval and usage of the token in the api request (#4) * initial rough draft commit * Added auth_check to subjects data pull and wrote the function to return a boolean so that it's more modular. * Passed coresessionid correctly and tried to remove an overlyverbose debug statement * Correcting headers to be passed according to requests library, not flask * Requiring tapis token to get data through APIs, still need to add requirement for local data * Making flask more verbose * Setup github actions for latest --------- Co-authored-by: Frank Netscher <[email protected]>
- Loading branch information
1 parent
c3c47ed
commit 3ce12ef
Showing
3 changed files
with
215 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build on push to latest | ||
on: | ||
push: | ||
branches: [ latest ] | ||
|
||
jobs: | ||
build_commit: | ||
runs-on: ubuntu-latest | ||
environment: docker | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get shortsha | ||
id: vars | ||
run: | | ||
if [ -z "$EVENT_SHA" ]; then SHORT_SHA=${GITHUB_SHA::8}; else SHORT_SHA=${EVENT_SHA::8}; fi | ||
echo ::set-output name=sha_short::${SHORT_SHA} | ||
env: | ||
EVENT_SHA: ${{ github.event.client_payload.sha }} | ||
- name: Print shortsha | ||
run: | | ||
echo $SHORTSHA | ||
env: | ||
SHORTSHA: ${{ steps.vars.outputs.sha_short }} | ||
- uses: mr-smithers-excellent/docker-build-push@v3 | ||
name: Build & push commit tagged Docker image | ||
with: | ||
image: ${{ secrets.DOCKERHUB_REPO }} | ||
tag: ${{ steps.vars.outputs.sha_short }} | ||
registry: docker.io | ||
dockerfile: Dockerfile | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- uses: mr-smithers-excellent/docker-build-push@v3 | ||
name: Build & push commit tagged Docker image | ||
with: | ||
image: ${{ secrets.DOCKERHUB_REPO }} | ||
tag: latest | ||
registry: docker.io | ||
dockerfile: Dockerfile | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.