-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Action to deploy master, development, and tags (#52)
* Testing Build & Publish action * Test2 * Test3 * Test4 * Test5 * Test6 * Test 7 * Test 8 * Test 9 * Updated to pmorelli92 * Swapped image tag * Removed branch from action
- Loading branch information
1 parent
4bb4493
commit a9d99b3
Showing
2 changed files
with
16 additions
and
13 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 |
---|---|---|
|
@@ -2,27 +2,30 @@ name: Github Packages Release | |
|
||
on: | ||
push: | ||
branches: [ releases ] | ||
pull_request: | ||
branches: [ releases ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
branches: | ||
- master | ||
- development | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
|
||
- name: Extract branch/tag name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" | ||
id: extract_branch | ||
|
||
# make sure you have "Improved Container Support" enabled for both your personal and/or Organization accounts! | ||
# TODO shift repo target to https://github.com/pmorelli92/github-container-registry-build-push/pull/1 | ||
- uses: LibreTexts/github-container-registry-build-push@main | ||
- uses: pmorelli92/[email protected] | ||
name: Build and Publish latest service image | ||
with: | ||
# Read note below to see how to generate the PAT | ||
personal-access-token: ${{secrets.GITHUB_TOKEN}} | ||
github-push-secret: ${{secrets.GITHUB_TOKEN}} | ||
docker-image-name: ww-renderer | ||
docker-image-tag: latest | ||
docker-image-tag: ${{ steps.extract_branch.outputs.branch }} |
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