1
0
Fork 0
mirror of synced 2024-11-05 01:08:57 -05:00
ovpn-admin/.github/workflows/publish-latest.yaml

35 lines
1 KiB
YAML
Raw Normal View History

name: Build and publish latest tag to Docker Hub (releases only)
on:
2021-03-09 04:55:54 -05:00
release:
types: [created]
2021-03-05 04:07:08 -05:00
jobs:
build:
name: build latest images for release
2021-03-05 04:07:08 -05:00
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
2023-10-09 11:25:23 -04:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
2021-03-09 10:14:25 -05:00
with:
2021-03-09 10:28:56 -05:00
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
2023-10-09 11:25:23 -04:00
- name: Push openvpn image to Docker Hub
uses: docker/build-push-action@v4
with:
tags: flant/ovpn-admin:openvpn-latest
platforms: linux/amd64,linux/arm64,linux/arm
file: Dockerfile.openvpn
push: true
- name: Push ovpn-admin image to Docker Hub
uses: docker/build-push-action@v4
with:
tags: flant/ovpn-admin:latest
platforms: linux/amd64,linux/arm64,linux/arm
file: Dockerfile
push: true