forked from blinko-space/blinko
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.1 KB
/
mark-stable.yml
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
name: Mark Stable Version
on:
workflow_dispatch:
inputs:
version:
description: 'stable tag version (such as: 1.2.3)'
required: true
type: string
jobs:
tag-stable:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Create and Push Multi-arch Manifests
run: |
# Docker Hub
docker buildx imagetools create -t blinkospace/blinko:stable \
blinkospace/blinko:${{ inputs.version }}
# GitHub Container Registry
docker buildx imagetools create -t ghcr.io/blinko-space/blinko:stable \
ghcr.io/blinko-space/blinko:${{ inputs.version }}