chore(deps): update all dependencies (#270) #202
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2024 Defense Unicorns | |
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial | |
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tag-new-version: | |
name: Tag New Version | |
permissions: write-all | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release-flag.outputs.release_created }} | |
steps: | |
- name: Create release tag | |
id: tag | |
uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.1.1 | |
with: | |
command: manifest # use configs in release-please-config.json | |
- id: release-flag | |
run: echo "release_created=${{ steps.tag.outputs.release_created || false }}" >> $GITHUB_OUTPUT | |
publish-uds-core: | |
needs: tag-new-version | |
if: ${{ needs.tag-new-version.outputs.release_created == 'true'}} | |
runs-on: ubuntu-latest | |
name: Publish Image | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 | |
- name: Set up Homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Install UDS CLI | |
shell: bash | |
# renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver | |
run: brew install defenseunicorns/tap/[email protected] | |
- name: "Login to GHCR" | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | |
with: | |
registry: ghcr.io | |
username: dummy | |
password: ${{ github.token }} | |
- name: Build and Publish | |
run: uds run build-and-publish --no-progress |