ovpn-admin/.github/workflows/publish-tag.yaml

34 lines
915 B
YAML
Raw Normal View History

2021-03-09 09:37:01 -05:00
name: Build and publish to Docker Hub (tags only)
on:
push:
tags:
- '*'
2021-03-09 04:55:54 -05:00
2021-03-05 04:07:08 -05:00
jobs:
build:
name: Converge
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Docker login
2021-03-09 06:12:29 -05:00
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
2021-03-09 09:37:01 -05:00
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
2021-03-05 04:07:08 -05:00
- name: Converge
2021-03-09 08:00:47 -05:00
uses: werf/actions/build-and-publish@master
2021-03-05 04:07:08 -05:00
with:
group: 1.1
channel: beta
env:
WERF_STAGES_STORAGE: ":local"
2021-03-09 08:13:00 -05:00
WERF_IMAGES_REPO: ${{ secrets.REGISTRY }}
WERF_REPO_IMPLEMENTATION: dockerhub
2021-03-09 09:37:01 -05:00
WERF_TAG_GIT_TAG: ${{ steps.get_version.outputs.VERSION }}