Skip to content

v1.6.0

v1.6.0 #19

name: build-release-stable
on:
push:
tags: 'v*'
env:
repo: dhcpy6d
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- uses: docker/metadata-action@v3
id: meta
with:
images:
${{ secrets.DOCKER_HUB_USERNAME }}/${{ env.repo }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- uses: docker/setup-buildx-action@v1
- uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}