mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-10 17:19:56 +08:00
36 lines
772 B
YAML
36 lines
772 B
YAML
|
name: Build Dev
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- dev
|
||
|
|
||
|
permissions: write-all
|
||
|
|
||
|
jobs:
|
||
|
goreleaser:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v3
|
||
|
|
||
|
- name: Set up Docker Buildx
|
||
|
uses: docker/setup-buildx-action@v3
|
||
|
|
||
|
- name: Login to GitHub Container Registry
|
||
|
uses: docker/login-action@v3
|
||
|
with:
|
||
|
registry: ghcr.io
|
||
|
username: ${{ github.actor }}
|
||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||
|
|
||
|
- name: Set Vars
|
||
|
run: |
|
||
|
echo "IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
|
||
|
|
||
|
- name: Build Image
|
||
|
uses: docker/build-push-action@v6
|
||
|
with:
|
||
|
context: .
|
||
|
push: true
|
||
|
tags: ${{ env.IMAGE }}:dev
|