8 Commits

Author SHA1 Message Date
90214a50bc fix: remove pre-downloaded binary
All checks were successful
CI / build (push) Successful in 13s
CI / release (release) Successful in 6m34s
2024-08-30 13:30:31 +12:00
289d186245 chore: Add .gitignore 🔧
All checks were successful
CI / build (push) Successful in 18s
2024-07-25 11:27:23 +12:00
8c4e685840 docs: Added README 📝 2024-07-25 11:26:51 +12:00
5b60906c2f fix: Corrected the address for github external plugin
All checks were successful
CI / build (push) Successful in 18s
CI / release (release) Successful in 5m0s
2024-07-25 11:05:00 +12:00
909eb110bd fix: go-semantic-release can download from github repo 🐛 🚀
Some checks failed
CI / build (push) Successful in 17s
CI / release (release) Failing after 4m24s
2024-07-25 10:20:32 +12:00
7efa2616c6 fix: go-semantic-release can download from github repo 🐛 🚀
Some checks failed
CI / build (push) Successful in 1m51s
CI / release (release) Failing after 4m17s
2024-07-25 09:54:24 +12:00
ab12fb11da fix: Update gitea provider version ⬆️
All checks were successful
CI / build (push) Successful in 1m45s
CI / release (release) Successful in 5m14s
2024-07-24 13:34:18 +12:00
b382cb0404 fix: Don't try copy if current working dir is /tmp 🐛
All checks were successful
CI / build (push) Successful in 15s
CI / release (release) Successful in 4m45s
2024-07-23 09:38:27 +12:00
4 changed files with 78 additions and 9 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.semrel

View File

@@ -1,5 +1,5 @@
FROM ghcr.io/catthehacker/ubuntu:act-22.04
ARG GITEA_PROVIDER_VER="1.0.13"
ARG GITEA_PROVIDER_VER="1.0.14"
# Install semantic-release wrapper
COPY scripts/go-semantic-release.sh /usr/local/bin/semantic-release
@@ -14,12 +14,9 @@ RUN mkdir -p /tmp/.semrel && \
--hooks exec && \
/usr/local/bin/semantic-release \
--download-plugins \
--provider github && \
--provider github \
--ci-condition github && \
/usr/local/bin/semantic-release \
--download-plugins \
--provider gitlab && \
mkdir -p /tmp/.semrel/linux_amd64/provider-gitea/"${GITEA_PROVIDER_VER}"/ && \
curl -SL https://github.com/cybercinch/go-semantic-release-provider-gitea/releases/download/v"${GITEA_PROVIDER_VER}"/go-semantic-release-provider-gitea_v"${GITEA_PROVIDER_VER}"_linux_amd64 \
--silent \
-o /tmp/.semrel/linux_amd64/provider-gitea/"${GITEA_PROVIDER_VER}"/gitea && \
chmod a+x /tmp/.semrel/linux_amd64/provider-gitea/"${GITEA_PROVIDER_VER}"/gitea
--provider gitlab \
--ci-condition gitlab

69
README.md Normal file
View File

@@ -0,0 +1,69 @@
# Ubuntu ACT Runner
This container is based on catthehacker/ubuntu:act-22.04 its purpose is to be used with Gitea Actions.
Included in this image is go-semantic-release and plugins for git,github,gitea and gitlab releases.
## Getting Started
These instructions will cover usage information and for the docker container
### Prerequisities
In order to run this container you'll need docker installed.
* [Windows](https://docs.docker.com/windows/started)
* [OS X](https://docs.docker.com/mac/started/)
* [Linux](https://docs.docker.com/linux/started/)
### Usage
#### Container Parameters
List the different parameters available to your container
```shell
docker run cybercinch/ubuntu:act_gitea-latest
```
You can get a shell into a container instance by running
```shell
docker run -rm -it cybercinch/ubuntu:act_gitea-latest bash
```
## Built With
* go-semantic-release v2.30.0
## Find Us
* [Gitea](https://hub.cybercinch.nz/cybercinch/ubuntu-act_gitea/)
* [DockerHub](https://hub.docker.com/r/cybercinch/ubuntu/)
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the
[tags on this repository](https://hub.cybercinch.nz/cybercinch/ubuntu-act_gitea/tags).
## Authors
* **Aaron Guise** - *Initial work* - [guisea](https://hub.cybercinch.nz/guisea)
See also the list of [contributors](https://hub.cybercinch.nz/cybercinch/ubuntu-act_gitea/activity/contributors) who
participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
## Acknowledgments
* People you want to thank
* If you took a bunch of code from somewhere list it here

View File

@@ -6,7 +6,9 @@
################################
# Copy pre-loaded plugins
cp -Rf /tmp/.semrel "$(pwd)"/;
if [ "$(pwd)" != "/tmp" ]; then
cp -Rf /tmp/.semrel "$(pwd)"/;
fi
# Execute semantic-release and expand parameters
/usr/local/bin/go-semantic-release "$@"