mirror of
https://github.com/flant/ovpn-admin.git
synced 2026-02-04 01:10:22 -08:00
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 6. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v4...v6) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Build and publish latest tag to Docker Hub (releases only)
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
build:
|
|
name: build latest images for release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v2
|
|
with:
|
|
username: ${{ secrets.DOCKER_USER }}
|
|
password: ${{ secrets.DOCKER_PASS }}
|
|
- name: Push openvpn image to Docker Hub
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
tags: flant/ovpn-admin:openvpn-latest
|
|
platforms: linux/amd64,linux/arm64,linux/arm
|
|
file: Dockerfile.ovpn-admin
|
|
push: true
|
|
- name: Push ovpn-admin image to Docker Hub
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
tags: flant/ovpn-admin:latest
|
|
platforms: linux/amd64,linux/arm64,linux/arm
|
|
file: Dockerfile.openvpn
|
|
push: true
|