From 7686caa658438481d4a371774407ec257d8f70eb Mon Sep 17 00:00:00 2001 From: Ajam Date: Wed, 25 Dec 2024 11:29:34 +0545 Subject: [PATCH] test ghcr --- .github/workflows/build-deploy.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index f204eb6..49c6e4d 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -42,6 +42,8 @@ jobs: #Docker Tags DOCKER_TAG="v$(date +'%Y.%m.%d')" && export DOCKER_TAG="$DOCKER_TAG" echo "DOCKER_TAG=$DOCKER_TAG" >> "${GITHUB_ENV}" + #GHCR Tags + echo "GHCR_NAME=ghcr.io/${{ github.repository_owner }}/archlinux" >> "${GITHUB_ENV}" #Repo mkdir -p "/tmp/ARCHLINUX" && pushd "/tmp/ARCHLINUX" >/dev/null 2>&1 git clone --filter="blob:none" --depth="1" "https://github.com/pkgforge-dev/docker-archlinux" @@ -63,6 +65,13 @@ jobs: password: "${{ secrets.DOCKERHUB_TOKEN }}" continue-on-error: true + - name: Login to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: "${{ github.actor }}" + password: "${{ secrets.GITHUB_TOKEN }}" + #https://hub.docker.com/r/pkgforge/archlinux - name: Docker Build and Push (archlinux) uses: docker/build-push-action@v6 @@ -72,5 +81,7 @@ jobs: tags: | pkgforge/archlinux:latest pkgforge/archlinux:${{ env.DOCKER_TAG }} + ${{ env.GHCR_NAME }}:latest + ${{ env.GHCR_NAME }}:${{ env.DOCKER_TAG }} push: true continue-on-error: true