Skip to content

Commit 4755bb7

Browse files
committed
merge: sync with latest changes
2 parents 5d1b654 + cc0ec5b commit 4755bb7

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: RELEASE - Publish to Docker Hub
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-push-dockerhub:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
20+
- name: Log in to Docker Hub
21+
uses: docker/login-action@v3
22+
with:
23+
username: 1minds3t
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
26+
- name: Extract metadata for Docker Hub
27+
id: meta
28+
uses: docker/metadata-action@v5
29+
with:
30+
images: 1minds3t/omnipkg
31+
# This creates tags like: 1.5.7, 1.5, and latest
32+
tags: |
33+
type=semver,pattern={{version}}
34+
type=semver,pattern={{major}}.{{minor}}
35+
type=raw,value=latest,enable={{is_default_branch}}
36+
37+
- name: Build and push to Docker Hub
38+
uses: docker/build-push-action@v5
39+
with:
40+
context: .
41+
platforms: linux/amd64,linux/arm64
42+
push: true
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}
45+
# You can still leverage the GHA cache from the CI workflow
46+
cache-from: type=gha
47+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)