Skip to content

Commit 1027bcb

Browse files
committed
Move to ghcr.io docker container registry #252
1 parent 693157e commit 1027bcb

File tree

3 files changed

+31
-28
lines changed

3 files changed

+31
-28
lines changed

.github/workflows/docker-build.yml

+25-22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: ci
2-
32
on:
43
push:
54
branches:
@@ -10,43 +9,47 @@ on:
109
- "beta"
1110
tags:
1211
- "*"
13-
1412
jobs:
1513
docker:
1614
runs-on: ubuntu-latest
1715
steps:
1816
-
19-
name: Checkout
20-
uses: actions/checkout@v2
17+
name: 📥 Checkout
18+
uses: actions/checkout@v4
2119
-
22-
name: Set up QEMU
23-
uses: docker/setup-qemu-action@v1
20+
name: 🖥️ Set up QEMU
21+
uses: docker/setup-qemu-action@v3
2422
-
25-
name: Docker meta tag
26-
id: docker_meta
27-
uses: docker/metadata-action@v3.5.0
23+
name: 🏷️ Docker meta tag
24+
id: meta
25+
uses: docker/metadata-action@v5
2826
with:
29-
images: guysoft/custompios
30-
tag-sha: true
27+
images: |
28+
ghcr.io/${{ github.repository_owner }}/custompios
29+
tags: |
30+
type=ref,event=branch
31+
type=ref,event=tag
32+
type=sha
3133
-
32-
name: Set up Docker Buildx
33-
uses: docker/setup-buildx-action@v1
34+
name: 🛠️ Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v3
3436
-
35-
name: Login to DockerHub
36-
uses: docker/login-action@v1
37+
name: 🔑 Login to GitHub Container Registry
38+
uses: docker/login-action@v3
3739
with:
38-
username: ${{ secrets.DOCKERHUB_USERNAME }}
39-
password: ${{ secrets.DOCKERHUB_TOKEN }}
40+
registry: ghcr.io
41+
username: ${{ github.repository_owner }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
4043
-
41-
name: Build and push
44+
name: 🏗️ Build and push
4245
id: docker_build
43-
uses: docker/build-push-action@v2
46+
uses: docker/build-push-action@v5
4447
with:
4548
context: src
4649
file: src/Dockerfile
4750
platforms: linux/amd64,linux/arm64,linux/arm/v7
4851
push: true
49-
tags: ${{ steps.docker_meta.outputs.tags }}
50-
labels: ${{ steps.docker_meta.outputs.labels }}
52+
tags: ${{ steps.meta.outputs.tags }}
53+
labels: ${{ steps.meta.outputs.labels }}
5154
secrets: |
52-
GIT_AUTH_TOKEN=${{ secrets.MY_GITHUB_TOKEN }}
55+
github_token=${{ secrets.GITHUB_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
image: guysoft/custompios:devel
1+
image: ghcr.io/guysoft/custompios:devel
22
manifests:
3-
- image: guysoft/custompios:amd64
3+
- image: ghcr.io/guysoft/custompios:amd64
44
platform:
55
architecture: amd64
66
os: linux
7-
- image: guysoft/custompios:arm32v7
7+
- image: ghcr.io/guysoft/custompios:arm32v7
88
platform:
99
architecture: arm
1010
os: linux
1111
variant: v7
12-
- image: guysoft/custompios:arm64v8
12+
- image: ghcr.io/guysoft/custompios:arm64v8
1313
platform:
1414
architecture: arm64
15-
os: linux
15+
os: linux

src/docker/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.6'
22

33
services:
44
custompios:
5-
image: guysoft/custompios:devel
5+
image: ghcr.io/guysoft/custompios:devel
66
container_name: ${DISTRO_NAME}-build
77
tty: true
88
restart: always

0 commit comments

Comments
 (0)