mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 02:34:43 +00:00
* test 1
* test 2
* remove accidental pasting in commit
* removed multi-platform for dev
* Revert "Add button to delete machine route"
This reverts commit 63041fd673.
* modernized release workflow
* update version
* Migration to Svelte 4
* cleaned up version injection
* moved build arg below FROM
* increment release
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Publish Dev Image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Variable Gathering
|
|
id: gathervars
|
|
run: |
|
|
# get a current BUILD_DATE
|
|
echo "BUILD_DATE=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_ENV
|
|
# set version based on BUILD_DATE
|
|
echo "VERSION=$(date +%Y.%m.%d)-development" >> $GITHUB_ENV
|
|
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Log in to the Container registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push Docker Image
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
build-args: |
|
|
BUILD_DATE=${{ env.BUILD_DATE }}
|
|
VERSION=${{ env.VERSION }}
|
|
context: ./docker/development
|
|
tags: |
|
|
ghcr.io/${{ github.repository }}-dev:latest
|
|
ghcr.io/${{ github.repository }}-dev:${{ env.VERSION }}
|
|
push: true
|