werf2docker
This commit is contained in:
parent
c31a40fa13
commit
8fe289ad5f
2 changed files with 27 additions and 18 deletions
22
.github/workflows/publish-latest.yaml
vendored
22
.github/workflows/publish-latest.yaml
vendored
|
@ -17,13 +17,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
- name: Converge
|
- name: Push openvpn image to Docker Hub
|
||||||
uses: werf/actions/build-and-publish@master
|
uses: docker/build-push-action@v1
|
||||||
with:
|
with:
|
||||||
group: 1.1
|
tags: flant/openvpn-admin:openvpn-latest
|
||||||
channel: beta
|
context: .
|
||||||
env:
|
file: Dockerfile.openvpn
|
||||||
WERF_STAGES_STORAGE: ":local"
|
push: true
|
||||||
WERF_IMAGES_REPO: ${{ secrets.REGISTRY }}
|
- name: Push openvpn-admin image to Docker Hub
|
||||||
WERF_REPO_IMPLEMENTATION: dockerhub
|
uses: docker/build-push-action@v1
|
||||||
WERF_TAG_GIT_TAG: "latest"
|
with:
|
||||||
|
tags: flant/openvpn-admin:latest
|
||||||
|
file: Dockerfile
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
|
23
.github/workflows/publish-tag.yaml
vendored
23
.github/workflows/publish-tag.yaml
vendored
|
@ -21,13 +21,18 @@ jobs:
|
||||||
- name: Get the version
|
- name: Get the version
|
||||||
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: Converge
|
- name: Push openvpn image to Docker Hub
|
||||||
uses: werf/actions/build-and-publish@master
|
uses: docker/build-push-action@v1
|
||||||
with:
|
with:
|
||||||
group: 1.1
|
tags: flant/openvpn-admin:openvpn-${{ steps.get_version.outputs.VERSION }}
|
||||||
channel: beta
|
context: .
|
||||||
env:
|
file: Dockerfile.openvpn
|
||||||
WERF_STAGES_STORAGE: ":local"
|
push: true
|
||||||
WERF_IMAGES_REPO: ${{ secrets.REGISTRY }}
|
- name: Push openvpn-admin image to Docker Hub
|
||||||
WERF_REPO_IMPLEMENTATION: dockerhub
|
uses: docker/build-push-action@v1
|
||||||
WERF_TAG_GIT_TAG: ${{ steps.get_version.outputs.VERSION }}
|
with:
|
||||||
|
tags: flant/openvpn-admin:${{ steps.get_version.outputs.VERSION }}
|
||||||
|
file: Dockerfile
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue