Skip to content

Commit

Permalink
test ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas authored Dec 25, 2024
1 parent f833596 commit 7686caa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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

0 comments on commit 7686caa

Please sign in to comment.