-
-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.42 KB
/
Copy pathrelease.yml
File metadata and controls
57 lines (48 loc) · 1.42 KB
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
# Manual Release — Docker Desktop Extension
#
# Manually trigger a Docker Hub publish. Use this as a fallback when the
# automated publish in release-please.yml doesn't run, or to re-publish
# a specific version.
#
# The primary release path is release-please.yml (automatic on merge).
name: Release (Manual)
on:
workflow_dispatch:
inputs:
tag:
description: "Image tag (e.g. 0.2.2). Required."
required: true
type: string
jobs:
validate:
name: Validate Extension
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Validate extension packaging
run: bash scripts/validate-extension.sh
publish:
name: Publish to Docker Hub
runs-on: ubuntu-latest
needs: [validate]
steps:
- uses: actions/checkout@v7
- uses: docker/setup-buildx-action@v4
- uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push multi-arch image
uses: docker/build-push-action@v7
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
build-args: |
VERSION=${{ inputs.tag }}
tags: |
herbhall/runbooks:${{ inputs.tag }}
herbhall/runbooks:latest