-
-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (49 loc) · 2.21 KB
/
docker.release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build and release Docker images
on:
push:
branches-ignore:
- '**'
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker image
uses: flownative/[email protected]
with:
tag_ref: ${{ github.ref }}
git_repository_url: https://github.com/${{ github.repository }}
git_sha: ${{ github.sha }}
image_name: flownative/docker-action-docker-build/action-docker-build
registry_password: ${{ secrets.GITHUB_TOKEN }}
- name: Determine latest released version
id: latest_version
uses: flownative/action-git-latest-release@master
- name: Tag semver releases
uses: flownative/action-docker-publish-semver@master
with:
tag_ref: ${{ steps.latest_version.outputs.tag }}
tag_latest: 'yes'
source_image_name: docker.pkg.github.com/flownative/docker-action-docker-build/action-docker-build
source_registry_username: github
source_registry_password: ${{ secrets.GITHUB_TOKEN }}
source_registry_endpoint: https://docker.pkg.github.com/v2/
target_image_name: docker.pkg.github.com/flownative/docker-action-docker-build/action-docker-build
target_registry_username: github
target_registry_password: ${{ secrets.GITHUB_TOKEN }}
target_registry_endpoint: https://docker.pkg.github.com/v2/
- name: Publish release to docker.io
uses: flownative/action-docker-publish-semver@master
with:
tag_ref: ${{ steps.latest_version.outputs.tag }}
tag_latest: 'yes'
source_image_name: docker.pkg.github.com/flownative/docker-action-docker-build/action-docker-build
source_registry_username: github
source_registry_password: ${{ secrets.GITHUB_TOKEN }}
source_registry_endpoint: https://docker.pkg.github.com/v2/
target_image_name: flownative/action-docker-build
target_registry_username: ${{ secrets.DOCKER_IO_REGISTRY_USER }}
target_registry_password: ${{ secrets.DOCKER_IO_REGISTRY_PASSWORD }}
target_registry_endpoint: https://index.docker.io/v1/