From ec0ee971edc1617dd3f12ff1ebd3b602607c6d17 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 6 Mar 2024 18:38:45 -0800 Subject: [PATCH] Attempt to use secrets. --- .gitea/workflows/build.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 5bf649c8..298c855e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,6 +1,8 @@ name: build run-name: ${{ gitea.actor }} is building -on: [push] +on: + push: + branches: [main] jobs: test: @@ -18,6 +20,9 @@ jobs: steps: - uses: actions/checkout@v4 - - run: podman login --username "${{ secrets.REGISTRY_USERNAME }}" --password "${{ secrets.REGISTRY_PASSWORD }}" projects.torsion.org + - run: podman login --username "$USERNAME" --password "$PASSWORD" projects.torsion.org + env: + USERNAME: "${{ secrets.REGISTRY_USERNAME }}" + PASSWORD: "${{ secrets.REGISTRY_PASSWORD }}" - run: podman build --tag "$IMAGE_NAME" --file docs/Dockerfile --storage-opt "overlay.mount_program=/usr/bin/fuse-overlayfs" . - run: podman push "$IMAGE_NAME"