1
0
Fork 0
mirror of synced 2024-11-12 20:28:59 -05:00
ovpn-admin/.github/workflows/publish-latest.yaml
2021-03-17 16:05:37 +07:00

30 lines
895 B
YAML

name: Build and publish to Docker Hub (releases only)
on:
release:
types: [created]
jobs:
build:
name: build latest images for relase
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push openvpn image to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
repository: flant/ovpn-admin
tags: openvpn-latest
dockerfile: Dockerfile.openvpn
- name: Push ovpn-admin image to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
repository: flant/ovpn-admin
tags: latest
dockerfile: Dockerfile