-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lorenzo Mangani <[email protected]>
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: 'Manual CI+CD' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
TAG_NAME: | ||
description: 'Release Version Tag (0.0.0)' | ||
required: true | ||
|
||
jobs: | ||
bun: | ||
name: 'Build & Publish Bun' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: 'actions/checkout@v3' | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Check Docker secret presence | ||
id: checkdocker | ||
shell: bash | ||
run: | | ||
if [ "$SECRET" == "" ]; then | ||
echo "secretspresent=false" >> $GITHUB_OUTPUT | ||
else | ||
echo "secretspresent=true" >> $GITHUB_OUTPUT | ||
fi | ||
env: | ||
SECRET: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Set up Docker QEMU | ||
if: ${{ steps.checkdocker.outputs.secretspresent }} | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: amd64, arm64 | ||
- name: Set up Docker Buildx | ||
if: ${{ steps.checkdocker.outputs.secretspresent }} | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
if: ${{ steps.checkdocker.outputs.secretspresent }} | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push to Docker Hub (bun) | ||
if: ${{ steps.checkdocker.outputs.secretspresent }} | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64, linux/arm64 | ||
file: ./Dockerfile_bun | ||
push: true | ||
tags: | | ||
qxip/qryn:bun | ||
- name: Log in to the GHCR registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push to GHCR (bun) | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64, linux/arm64 | ||
file: ./Dockerfile_bun | ||
push: true | ||
tags: | | ||
ghcr.io/metrico/qryn:bun |