Skip to content

dev-build-nightlies #938

dev-build-nightlies

dev-build-nightlies #938

Workflow file for this run

# Copyright 2024 Nokia
# Licensed under the Apache License 2.0
# SPDX-License-Identifier: Apache-2.0
name: dev-build-nightlies
on:
schedule:
- cron: "5 20 * * *"
workflow_dispatch:
jobs:
dev-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
# Make sure the @v0.8.0 matches the current version of the action
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.IPTECHARCH_SSH_KEY }}
- name: Setup Git config
run: |
git config --global url."ssh://[email protected]/".insteadOf "https://github.com/"
mkdir -p -m 0700 /home/runner/.ssh && ssh-keyscan github.com >> /home/runner/.ssh/known_hosts
- uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
- name: Login to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: "~> v2"
args: release --clean -f .goreleaser.nightlies.yml --skip=validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IS_PR: "false"
PR: ""
MAIN_BRANCH: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }}