Skip to content

Commit 7686caa

Browse files
authored
test ghcr
1 parent f833596 commit 7686caa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build-deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
#Docker Tags
4343
DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="$DOCKER_TAG"
4444
echo "DOCKER_TAG=$DOCKER_TAG" >> "${GITHUB_ENV}"
45+
#GHCR Tags
46+
echo "GHCR_NAME=ghcr.io/${{ github.repository_owner }}/archlinux" >> "${GITHUB_ENV}"
4547
#Repo
4648
mkdir -p "/tmp/ARCHLINUX" && pushd "/tmp/ARCHLINUX" >/dev/null 2>&1
4749
git clone --filter="blob:none" --depth="1" "https://github.com/pkgforge-dev/docker-archlinux"
@@ -63,6 +65,13 @@ jobs:
6365
password: "${{ secrets.DOCKERHUB_TOKEN }}"
6466
continue-on-error: true
6567

68+
- name: Login to GHCR
69+
uses: docker/login-action@v3
70+
with:
71+
registry: ghcr.io
72+
username: "${{ github.actor }}"
73+
password: "${{ secrets.GITHUB_TOKEN }}"
74+
6675
#https://hub.docker.com/r/pkgforge/archlinux
6776
- name: Docker Build and Push (archlinux)
6877
uses: docker/build-push-action@v6
@@ -72,5 +81,7 @@ jobs:
7281
tags: |
7382
pkgforge/archlinux:latest
7483
pkgforge/archlinux:${{ env.DOCKER_TAG }}
84+
${{ env.GHCR_NAME }}:latest
85+
${{ env.GHCR_NAME }}:${{ env.DOCKER_TAG }}
7586
push: true
7687
continue-on-error: true

0 commit comments

Comments
 (0)