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:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Converge
|
||||
uses: werf/actions/build-and-publish@master
|
||||
- name: Push openvpn image to Docker Hub
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
group: 1.1
|
||||
channel: beta
|
||||
env:
|
||||
WERF_STAGES_STORAGE: ":local"
|
||||
WERF_IMAGES_REPO: ${{ secrets.REGISTRY }}
|
||||
WERF_REPO_IMPLEMENTATION: dockerhub
|
||||
WERF_TAG_GIT_TAG: "latest"
|
||||
tags: flant/openvpn-admin:openvpn-latest
|
||||
context: .
|
||||
file: Dockerfile.openvpn
|
||||
push: true
|
||||
- name: Push openvpn-admin image to Docker Hub
|
||||
uses: docker/build-push-action@v1
|
||||
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
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
- name: Converge
|
||||
uses: werf/actions/build-and-publish@master
|
||||
- name: Push openvpn image to Docker Hub
|
||||
uses: docker/build-push-action@v1
|
||||
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 }}
|
||||
tags: flant/openvpn-admin:openvpn-${{ steps.get_version.outputs.VERSION }}
|
||||
context: .
|
||||
file: Dockerfile.openvpn
|
||||
push: true
|
||||
- name: Push openvpn-admin image to Docker Hub
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
tags: flant/openvpn-admin:${{ steps.get_version.outputs.VERSION }}
|
||||
file: Dockerfile
|
||||
context: .
|
||||
push: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue