mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-07-15 21:48:13 +03:00
chore: add support for Docker Hub
This commit is contained in:
6
.github/workflows/build-next.yml
vendored
6
.github/workflows/build-next.yml
vendored
@@ -57,6 +57,12 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v4
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set Short Git Commit SHA
|
- name: Set Short Git Commit SHA
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
|
||||||
|
|||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -52,6 +52,12 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v4
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v7
|
uses: goreleaser/goreleaser-action@v7
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ dockers_v2:
|
|||||||
- pocket-id
|
- pocket-id
|
||||||
dockerfile: docker/Dockerfile-prebuilt
|
dockerfile: docker/Dockerfile-prebuilt
|
||||||
images:
|
images:
|
||||||
|
- "pocketid/pocket-id"
|
||||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
|
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
|
||||||
tags:
|
tags:
|
||||||
- "{{ .Tag }}"
|
- "{{ .Tag }}"
|
||||||
@@ -110,6 +111,7 @@ dockers_v2:
|
|||||||
- pocket-id
|
- pocket-id
|
||||||
dockerfile: docker/Dockerfile-distroless
|
dockerfile: docker/Dockerfile-distroless
|
||||||
images:
|
images:
|
||||||
|
- "pocketid/pocket-id"
|
||||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
|
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
|
||||||
tags:
|
tags:
|
||||||
- "{{ .Tag }}-distroless"
|
- "{{ .Tag }}-distroless"
|
||||||
@@ -137,6 +139,7 @@ dockers_v2:
|
|||||||
- pocket-id
|
- pocket-id
|
||||||
dockerfile: docker/Dockerfile-prebuilt
|
dockerfile: docker/Dockerfile-prebuilt
|
||||||
images:
|
images:
|
||||||
|
- "pocketid/pocket-id"
|
||||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
|
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
|
||||||
tags:
|
tags:
|
||||||
- "next"
|
- "next"
|
||||||
@@ -164,6 +167,7 @@ dockers_v2:
|
|||||||
- pocket-id
|
- pocket-id
|
||||||
dockerfile: docker/Dockerfile-distroless
|
dockerfile: docker/Dockerfile-distroless
|
||||||
images:
|
images:
|
||||||
|
- "pocketid/pocket-id"
|
||||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
|
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
|
||||||
tags:
|
tags:
|
||||||
- "next-distroless"
|
- "next-distroless"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
pocket-id:
|
pocket-id:
|
||||||
image: ghcr.io/pocket-id/pocket-id:v2
|
image: pocketid/pocket-id:v2 # or ghcr.io/pocket-id/pocket-id:v2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
docker buildx build --push --file docker/Dockerfile --tag ghcr.io/pocket-id/pocket-id:development --platform linux/amd64,linux/arm64 .
|
docker buildx build --push --file docker/Dockerfile --tag pocketid/pocket-id:development --tag ghcr.io/pocket-id/pocket-id:development --platform linux/amd64,linux/arm64 .
|
||||||
|
|||||||
Reference in New Issue
Block a user