mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2025-09-04 03:14:14 +08:00
first release
This commit is contained in:
parent
546aed80b0
commit
8e42b1c6f5
1 changed files with 32 additions and 0 deletions
32
.github/workflows/release.yml
vendored
Normal file
32
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
create:
|
||||
tags:
|
||||
- v*.*.*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Docker-Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Get the version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
|
||||
- uses: actions/checkout@master
|
||||
- name: Get the Date
|
||||
id: get_date
|
||||
run: echo ::set-output name=DATE::$(date '+%Y-%m-%d-%H:%M:%S')
|
||||
- uses: actions/checkout@master
|
||||
- name: Get docker version
|
||||
id: get_docker_version
|
||||
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//g' )
|
||||
- uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: nicksherron/bashhub-server
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
dockerfile: Dockerfile
|
||||
buildargs: VERSION=${{ steps.get_version.outputs.VERSION }},BUILD_DATE=${{ steps.get_date.outputs.DATE }},GIT_COMMIT=${{github.sha}}
|
||||
tags: latest,${{steps.get_docker_version.outputs.VERSION}}
|
Loading…
Add table
Reference in a new issue