File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 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"
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
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
You can’t perform that action at this time.
0 commit comments