Skip to content

Commit b6ea9db

Browse files
committed
switch to ghcr and remove old workflow
1 parent 5bf218e commit b6ea9db

File tree

2 files changed

+9
-62
lines changed

2 files changed

+9
-62
lines changed

.github/workflows/docker-build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,29 @@ jobs:
2020
id: meta
2121
uses: docker/metadata-action@v5
2222
with:
23-
images: ${{ vars.DOCKER_USERNAME }}/cmnw-next
23+
images: ghcr.io/${{ github.repository }}
2424
tags: |
2525
type=semver,pattern={{version}}
2626
type=semver,pattern={{major}}.{{minor}}
2727
type=semver,pattern={{major}}
2828
type=ref,event=tag
29+
labels: |
30+
org.opencontainers.image.title=CMNW-NEXT
31+
org.opencontainers.image.vendor=AlexZeDim
32+
org.opencontainers.image.source=https://github.com/${{ github.repository }}
2933
3034
- name: Set up QEMU
3135
uses: docker/setup-qemu-action@v3
3236

3337
- name: Set up Docker Buildx
3438
uses: docker/setup-buildx-action@v3
3539

36-
- name: Log in to Docker Hub
40+
- name: Log in to GitHub Container Registry
3741
uses: docker/login-action@v3
3842
with:
39-
username: ${{ vars.DOCKER_USERNAME }}
40-
password: ${{ secrets.DOCKER_PASSWORD }}
43+
registry: ghcr.io
44+
username: ${{ github.actor }}
45+
password: ${{ secrets.GITHUB_TOKEN }}
4146

4247
- name: Build and push
4348
uses: docker/build-push-action@v6

.github/workflows/next-build.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)