1
0
Fork 0
mirror of synced 2024-11-16 22:25:33 -05:00
ovpn-admin/.github/workflows/publish-latest.yaml

34 lines
894 B
YAML
Raw Normal View History

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:
name: Converge
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Docker login
2021-03-09 06:12:29 -05:00
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
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:14:25 -05:00
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