node-alpine-git/.forgejo/workflows/build_release.yml

37 lines
1 KiB
YAML
Raw Normal View History

2024-07-18 19:55:54 +00:00
on:
push:
tags:
- '[0-9]+'
jobs:
build:
runs-on: dind
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log into Docker Package Registry
uses: docker/login-action@v3
with:
registry: forgejo.neshweb.net
username: ${{ secrets.FORGEJO_USERNAME }}
password: ${{ secrets.FORGEJO_TOKEN }}
- name: Build and push to Docker Package Registry
uses: docker/build-push-action@v5
with:
push: true
tags: forgejo.neshweb.net/ci-docker-images/node-alpine-git:${{ github.ref_name }}, forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
release:
needs: [ build ]
if: success()
runs-on: docker
steps:
- name: Release New Version
2024-08-06 12:27:27 +00:00
uses: actions/forgejo-release@v2
2024-07-18 19:55:54 +00:00
with:
direction: upload
url: https://forgejo.neshweb.net
release-dir: release
token: ${{ secrets.FORGEJO_TOKEN }}
tag: ${{ github.ref_name }}