fixed yaml formatting

This commit is contained in:
vabene1111
2020-06-10 11:36:45 +02:00
parent e60441ec99
commit 29d4dcb73d
2 changed files with 26 additions and 26 deletions

View File

@@ -10,8 +10,8 @@ jobs:
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- name: Get version number - name: Get version number
id: get_version id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Update version file - name: Update version file
uses: DamianReeves/write-file-action@v1.0 uses: DamianReeves/write-file-action@v1.0
with: with:

View File

@@ -7,27 +7,27 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Build image job name: Build image job
steps: steps:
- name: Checkout master - name: Checkout master
uses: actions/checkout@master# uses: actions/checkout@master#
- name: Get version number - name: Get version number
id: get_version id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Update version file - name: Update version file
uses: DamianReeves/write-file-action@v1.0 uses: DamianReeves/write-file-action@v1.0
with: with:
path: recipes/version.py path: recipes/version.py
contents: | contents: |
VERSION_NUMBER = '${{ steps.get_version.outputs.VERSION }}' VERSION_NUMBER = '${{ steps.get_version.outputs.VERSION }}'
BUILD_REF = '${{ github.sha }}' BUILD_REF = '${{ github.sha }}'
write-mode: overwrite write-mode: overwrite
- name: Build and publish image - name: Build and publish image
uses: ilteoood/docker_buildx@master uses: ilteoood/docker_buildx@master
with: with:
publish: true publish: true
imageName: vabene1111/recipes imageName: vabene1111/recipes
tag: ${{ steps.get_version.outputs.VERSION }} tag: ${{ steps.get_version.outputs.VERSION }}
dockerHubUser: ${{ secrets.DOCKER_USERNAME }} dockerHubUser: ${{ secrets.DOCKER_USERNAME }}
dockerHubPassword: ${{ secrets.DOCKER_PASSWORD }} dockerHubPassword: ${{ secrets.DOCKER_PASSWORD }}