1
0
Fork 0
mirror of synced 2024-11-22 00:35:36 -05:00

workflows changes

This commit is contained in:
Ilya Sosnovsky 2021-03-09 17:37:01 +03:00
parent c145fc7a10
commit c31a40fa13
2 changed files with 34 additions and 0 deletions

View file

@ -26,3 +26,4 @@ jobs:
WERF_STAGES_STORAGE: ":local"
WERF_IMAGES_REPO: ${{ secrets.REGISTRY }}
WERF_REPO_IMPLEMENTATION: dockerhub
WERF_TAG_GIT_TAG: "latest"

33
.github/workflows/publish-tag.yaml vendored Normal file
View 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 }}