2021-03-09 04:55:54 -05:00
|
|
|
name: Build and publish to Docker Hub (releases only)
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
2021-03-05 04:07:08 -05:00
|
|
|
jobs:
|
|
|
|
build:
|
2021-03-09 10:28:56 -05:00
|
|
|
name: build latest images for relase
|
2021-03-05 04:07:08 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-03-09 10:14:25 -05:00
|
|
|
- name: Push openvpn image to Docker Hub
|
|
|
|
uses: docker/build-push-action@v1
|
2021-03-05 04:07:08 -05:00
|
|
|
with:
|
2021-03-09 10:28:56 -05:00
|
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
|
|
password: ${{ secrets.DOCKER_PASS }}
|
|
|
|
repository: flant/openvpn-admin
|
|
|
|
tags: openvpn-latest
|
|
|
|
dockerfile: Dockerfile.openvpn
|
2021-03-09 10:14:25 -05:00
|
|
|
- name: Push openvpn-admin image to Docker Hub
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
with:
|
2021-03-09 10:28:56 -05:00
|
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
|
|
password: ${{ secrets.DOCKER_PASS }}
|
|
|
|
repository: flant/openvpn-admin
|
|
|
|
tags: latest
|
|
|
|
dockerfile: Dockerfile
|