Skip to content

Alpine 3.18.4 and OpenVPN 2.6.7-r0 #10

Alpine 3.18.4 and OpenVPN 2.6.7-r0

Alpine 3.18.4 and OpenVPN 2.6.7-r0 #10

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
# Get the repository's code
- name: Checkout
uses: actions/checkout@v3
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: openvpn # you'll use this in the next step
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
frauhottelmann/openvpn-client
# Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm/v7, linux/arm/v6, linux/arm64/v8
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.openvpn.outputs.tags }}
labels: ${{ steps.openvpn.outputs.labels }}