adding support for shell command execution with a given SLV vault #68
Workflow file for this run
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
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
name: SLV Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setting SLV Version | |
run: echo "SLV_VERSION=${GITHUB_REF_NAME:1}" >> $GITHUB_ENV | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Releasing SLV | |
run: | | |
docker run --rm \ | |
-w /workspace \ | |
-v $PWD:/workspace \ | |
-e GITHUB_TOKEN \ | |
-e HOMEBREW_SSH_KEY \ | |
ghcr.io/goreleaser/goreleaser-cross:latest release \ | |
--clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HOMEBREW_SSH_KEY: ${{ secrets.HOMEBREW_SSH_KEY }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Release SLV Image | |
uses: docker/build-push-action@v6 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: . | |
push: true | |
tags: | | |
ghcr.io/${{ github.repository }}:${{ env.SLV_VERSION }} | |
ghcr.io/${{ github.repository }}:${{ github.ref_name }} | |
ghcr.io/${{ github.repository }}:latest | |
pages: | |
name: Deploy Static Assets to GitHub Pages | |
needs: release | |
uses: ./.github/workflows/pages.yaml | |
secrets: inherit |