Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramonpaolo/action-zenifra
Action to update image from a project
https://github.com/ramonpaolo/action-zenifra
actions nodejs zenifra
Last synced: 16 days ago
JSON representation
Action to update image from a project
- Host: GitHub
- URL: https://github.com/ramonpaolo/action-zenifra
- Owner: ramonpaolo
- Created: 2024-09-21T15:07:59.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-30T14:17:24.000Z (18 days ago)
- Last Synced: 2024-10-30T15:25:51.089Z (18 days ago)
- Topics: actions, nodejs, zenifra
- Language: JavaScript
- Homepage: https://homepage-ad5846ff46dac8d0a7.zenifra.com
- Size: 735 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# action-zenifra
This GitHub Action facilitates the deployment of Docker images to [Zenifra](https://homepage-ad5846ff46dac8d0a7.zenifra.com), a platform designed to streamline application hosting and management.## Input parameters
| Name | Description | Required | Default |
| :------------- | :------------------------------- | :------- | :--------------- |
| image | The Docker image to be deployed | `true` | N/A |
| project_id | The ID of the project on Zenifra | `true` | N/A |## Example
The example below demonstrates a complete workflow that builds and publishes a Docker image to Docker Hub, followed by deploying this new image on Zenifra.
```yaml
name: Deploy PRD
on:
push:
branches:
- mainjobs:
build: # Job to build and publish the Docker image
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main- name: Set up QEMU
uses: docker/setup-qemu-action@v2- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2- name: Log in to Docker Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}- name: Build and Publish Docker Image
run: docker buildx build -t /: --platform=linux/amd64 --push .deploy: # Job to deploy the Docker image on Zenifra
needs: build
name: deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main- name: Deploy Image to Zenifra
uses: ramonpaolo/action-zenifra@main
with:
project_id:
image: /: