Skip to content

Commit

Permalink
Updated Action to deploy master, development, and tags (#52)
Browse files Browse the repository at this point in the history
* 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
Miniland1333 authored Apr 29, 2021
1 parent 4bb4493 commit a9d99b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/createContainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion k8/Renderer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: wwrenderer
image: ghcr.io/drdrew42/ww-renderer
image: ghcr.io/drdrew42/ww-renderer:master
resources:
requests:
cpu: "0.5"
Expand Down

0 comments on commit a9d99b3

Please sign in to comment.