Branch management and version strings
This commit is contained in:
parent
9a8be857b8
commit
3c028704f2
4 changed files with 7 additions and 2 deletions
25
.github/workflows/push-to-latest.yml
vendored
Normal file
25
.github/workflows/push-to-latest.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
on:
|
||||
push:
|
||||
branches: ['latest']
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- id: make_version_string
|
||||
uses: ./.github/actions/make-version-string
|
||||
with:
|
||||
assemblyInfoPath: AssemblyInfo.cs
|
||||
primaryBranch: 'latest'
|
||||
- uses: ./.github/actions/expand-tokens
|
||||
env:
|
||||
VERSIONSTRING: ${{ steps.make_version_string.outputs.versionstring }}
|
||||
with:
|
||||
path: Constants.cs
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: sandersaares/test123:latest
|
||||
username: sandersaares
|
||||
password: ${{ secrets.docker_hub_token }}
|
||||
snapshot: true
|
Loading…
Add table
Add a link
Reference in a new issue