Skip to content

Add kubernetes-create-acr-secret template #79

Add kubernetes-create-acr-secret template

Add kubernetes-create-acr-secret template #79

Workflow file for this run

name: TestAndTag
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, reopened, synchronize, labeled]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PowerShell module cache
id: cacher
uses: actions/cache@v3
with:
path: "~/.local/share/powershell/Modules"
key: ${{ runner.os }}-AWSPowerShell.NetCore
- name: Install from PSGallery
if: steps.cacher.outputs.cache-hit != 'true'
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module AWSPowerShell.NetCore
- name: Invoke Tests
shell: pwsh
run: Tests/Invoke-Tests.ps1
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: '**/TEST-*.xml'
tag:
name: Push Git Tag
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get latest tag
uses: actions-ecosystem/[email protected]
id: get-latest-tag
with:
semver_only: true
- name: Bump tag
uses: actions-ecosystem/[email protected]
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.tag }}
level: minor
- name: Push tag
uses: actions-ecosystem/[email protected]
if: ${{ success() && github.ref == 'refs/heads/main' }}
with:
tag: ${{ steps.bump-semver.outputs.new_version }}