Fixed workflow build
Some checks failed
/ build (push) Failing after 5s

This commit is contained in:
lichenblankie 2026-04-11 05:55:47 +00:00
parent a32840c309
commit 5473680998

View file

@ -56,3 +56,19 @@ jobs:
-H "Authorization: token $TOKEN" \ -H "Authorization: token $TOKEN" \
-F "attachment=@$FILE" -F "attachment=@$FILE"
- name: Set up Docker Buildx
uses: https://code.forgejo.org/actions/docker-setup-buildx@v1
- name: Login to Registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login registry.derickphan.com -u _ --password-stdin
- name: Build and push Docker image
run: |
TAG="${{ github.ref_name }}"
if [ -z "$TAG" ]; then
TAG="latest"
fi
docker build -t registry.derickphan.com/tinyweb:$TAG .
docker push registry.derickphan.com/tinyweb:$TAG