werf2docker

This commit is contained in:
Ilya Sosnovsky 2021-03-09 18:14:25 +03:00
parent c31a40fa13
commit 8fe289ad5f
2 changed files with 27 additions and 18 deletions

View File

@ -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

View File

@ -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