30 lines
1012 B
YAML
30 lines
1012 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: denoland/deno:debian
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Compile
|
|
run: deno compile --allow-net --allow-read --allow-write --allow-env --output reconciler src/main.ts
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
docker build -t ${{ secrets.GITEA_URL }}/blastpilot/netbird-reconciler:${{ github.ref_name }} .
|
|
docker tag ${{ secrets.GITEA_URL }}/blastpilot/netbird-reconciler:${{ github.ref_name }} \
|
|
${{ secrets.GITEA_URL }}/blastpilot/netbird-reconciler:latest
|
|
|
|
- name: Push Docker image
|
|
run: |
|
|
echo "${{ secrets.PACKAGE_TOKEN }}" | docker login ${{ secrets.GITEA_URL }} -u achilles-ci-bot --password-stdin
|
|
docker push ${{ secrets.GITEA_URL }}/blastpilot/netbird-reconciler:${{ github.ref_name }}
|
|
docker push ${{ secrets.GITEA_URL }}/blastpilot/netbird-reconciler:latest
|