Skip to content

Build

Build #51

Workflow file for this run

name: Build
on:
workflow_dispatch:
schedule:
- cron: 0 1 * * 2
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cat build_variables >> $GITHUB_ENV
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.IMAGE_NAME }}
flavor: |
latest=true
tags: |
type=sha,prefix=
- uses: docker/build-push-action@v5
with:
context: build
build-args: |
WGT_GIT_REF=${{ env.WGT_GIT_REF }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true