mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-11-14 16:56:14 +01:00
27 lines
702 B
YAML
27 lines
702 B
YAML
---
|
|
name: cd
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
jobs:
|
|
release-dockerimage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Extract dyndnsd version from tag name
|
|
run: |
|
|
echo ::set-env name=DYNDNSD_VERSION::${GITHUB_REF#refs/*/v}
|
|
# https://github.com/marketplace/actions/build-and-push-docker-images
|
|
- name: Build and push Docker image for dyndnsd ${{ env.DYNDNSD_VERSION }}
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: cmur2
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
repository: cmur2/dyndnsd
|
|
path: docker
|
|
build_args: DYNDNSD_VERSION=${{ env.DYNDNSD_VERSION }}
|
|
tag_with_ref: true
|