From 0b58c0e7b3b82b589c31d8e413c33333277a66eb Mon Sep 17 00:00:00 2001 From: merith-tk Date: Sun, 3 Nov 2024 14:11:50 -0800 Subject: [PATCH] remember to login to OCI --- .forgejo/workflows/build-on-commit.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.forgejo/workflows/build-on-commit.yml b/.forgejo/workflows/build-on-commit.yml index f0752dd..e8f0d2e 100644 --- a/.forgejo/workflows/build-on-commit.yml +++ b/.forgejo/workflows/build-on-commit.yml @@ -21,6 +21,10 @@ jobs: echo "REPO_HOST=$(echo "${{ github.server_url }}" | sed 's~http[s]*://~~g')" >> $GITHUB_ENV echo "REPO_PATH=${{ github.repository }}" >> $GITHUB_ENV + - name: Login to OCI registry + run: | + echo "${{ secrets.OCI_TOKEN }}" | docker login $REPO_HOST -u "${{ secrets.OCI_USER }}" --password-stdin + - name: Build and push Docker images run: | # Build Docker image with commit SHA