mirror of https://github.com/wg-easy/wg-easy
1 changed files with 56 additions and 0 deletions
@ -0,0 +1,56 @@ |
|||||
|
name: Weekly Build |
||||
|
|
||||
|
on: |
||||
|
schedule: |
||||
|
# Run at 00:00 on Sundays |
||||
|
- cron: '0 0 * * 0' |
||||
|
workflow_dispatch: # Allows manual execution when needed |
||||
|
|
||||
|
jobs: |
||||
|
docker: |
||||
|
name: Build & Deploy Weekly Docker |
||||
|
runs-on: ubuntu-latest |
||||
|
if: github.repository_owner == 'wg-easy' |
||||
|
permissions: |
||||
|
packages: write |
||||
|
contents: read |
||||
|
steps: |
||||
|
- uses: actions/checkout@v4 |
||||
|
with: |
||||
|
ref: master |
||||
|
|
||||
|
- name: Set up QEMU |
||||
|
uses: docker/setup-qemu-action@v3 |
||||
|
|
||||
|
- name: Set up Docker Buildx |
||||
|
uses: docker/setup-buildx-action@v3 |
||||
|
|
||||
|
- name: Docker meta |
||||
|
id: meta |
||||
|
uses: docker/metadata-action@v5 |
||||
|
with: |
||||
|
images: | |
||||
|
ghcr.io/wg-easy/wg-easy |
||||
|
flavor: | |
||||
|
latest=false |
||||
|
tags: | |
||||
|
type=raw,value=weekly |
||||
|
type=raw,value=weekly-{{date 'YYYY.MM.DD'}} |
||||
|
|
||||
|
- name: Login to GitHub Container Registry |
||||
|
uses: docker/login-action@v3 |
||||
|
with: |
||||
|
registry: ghcr.io |
||||
|
username: ${{ github.actor }} |
||||
|
password: ${{ secrets.GITHUB_TOKEN }} |
||||
|
|
||||
|
- name: Build & Publish Docker Image |
||||
|
uses: docker/build-push-action@v6 |
||||
|
with: |
||||
|
context: . |
||||
|
push: true |
||||
|
platforms: linux/amd64,linux/arm64 |
||||
|
tags: ${{ steps.meta.outputs.tags }} |
||||
|
labels: ${{ steps.meta.outputs.labels }} |
||||
|
cache-from: type=gha |
||||
|
cache-to: type=gha,mode=min |
Loading…
Reference in new issue