Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
47 lines (41 loc) · 1.41 KB

File metadata and controls

47 lines (41 loc) · 1.41 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name: Mark Release as Stable
on:
workflow_dispatch:
inputs:
version:
description: 'Version to mark as stable (e.g., 1.2.3)'
required: true
permissions:
contents: read
jobs:
stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Check if version exists in PyPI
id: version_check
env:
INPUT_VERSION: ${{ inputs.version }}
run: |
if ! curl -s -f "https://pypi.org/pypi/socketsecurity/${INPUT_VERSION}/json" > /dev/null; then
echo "Error: Version ${INPUT_VERSION} not found on PyPI"
exit 1
fi
echo "Version ${INPUT_VERSION} found on PyPI - proceeding with release"
- name: Set up Docker publishing
uses: ./.github/actions/setup-docker
with:
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & Push Stable Docker
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
push: true
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
tags: socketdev/cli:stable
build-args: |
CLI_VERSION=${{ inputs.version }}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.