1
0
Fork 0
mirror of synced 2024-12-18 12:31:08 -05:00

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

View file

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