29 lines
818 B
YAML
29 lines
818 B
YAML
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
|