mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 07:08:03 -05:00
fixed yaml formatting
This commit is contained in:
4
.github/workflows/docker-publish-latest.yml
vendored
4
.github/workflows/docker-publish-latest.yml
vendored
@@ -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:
|
||||||
|
|||||||
48
.github/workflows/docker-publish-release.yml
vendored
48
.github/workflows/docker-publish-release.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user