workflows changes
This commit is contained in:
parent
c145fc7a10
commit
c31a40fa13
2 changed files with 34 additions and 0 deletions
|
@ -26,3 +26,4 @@ jobs:
|
||||||
WERF_STAGES_STORAGE: ":local"
|
WERF_STAGES_STORAGE: ":local"
|
||||||
WERF_IMAGES_REPO: ${{ secrets.REGISTRY }}
|
WERF_IMAGES_REPO: ${{ secrets.REGISTRY }}
|
||||||
WERF_REPO_IMPLEMENTATION: dockerhub
|
WERF_REPO_IMPLEMENTATION: dockerhub
|
||||||
|
WERF_TAG_GIT_TAG: "latest"
|
33
.github/workflows/publish-tag.yaml
vendored
Normal file
33
.github/workflows/publish-tag.yaml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Build and publish to Docker Hub (tags only)
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Converge
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Docker login
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
|
- name: Get the version
|
||||||
|
id: get_version
|
||||||
|
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||||
|
- name: Converge
|
||||||
|
uses: werf/actions/build-and-publish@master
|
||||||
|
with:
|
||||||
|
group: 1.1
|
||||||
|
channel: beta
|
||||||
|
env:
|
||||||
|
WERF_STAGES_STORAGE: ":local"
|
||||||
|
WERF_IMAGES_REPO: ${{ secrets.REGISTRY }}
|
||||||
|
WERF_REPO_IMPLEMENTATION: dockerhub
|
||||||
|
WERF_TAG_GIT_TAG: ${{ steps.get_version.outputs.VERSION }}
|
Loading…
Reference in a new issue