first deno publish workflow
This commit is contained in:
28
.gitea/workflows/build-deno-release.yml
Normal file
28
.gitea/workflows/build-deno-release.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Build and Push Deno Release Action
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- deno-release/**
|
||||
- .gitea/workflows/build-deno-release.yml
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build -t git.cyborggrizzly.com/bearmetal/ci-actions/deno-release:latest ./deno-release
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
env:
|
||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||
run: |
|
||||
echo "$REGISTRY_TOKEN" | docker login git.cyborggrizzly.com -u "$REGISTRY_USER" --password-stdin
|
||||
|
||||
- name: Push image to Gitea Registry
|
||||
run: |
|
||||
docker push git.cyborggrizzly.com/bearmetal/ci-actions/deno-release:latest
|
Reference in New Issue
Block a user