Update to grafana-agent v0.43.4 #44
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
# Build the snap on pull_request to ensure the snap is buildable before merge to main | |
# | |
# This workflow duplicates some of the logic from release-snap.yaml. If modifying this workflow, | |
# ensure that release-snap.yaml is also updated | |
name: Test Build Snap | |
on: | |
pull_request: | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} | |
LAUNCHPAD_TOKEN: ${{ secrets.LAUNCHPAD_TOKEN }} | |
jobs: | |
build: | |
name: Build snap (${{ matrix.confinement }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
confinement: [ "strict", "classic" ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
# snapcraft remote-build requires a full clone | |
fetch-depth: 0 | |
- name: Setup LXD | |
uses: canonical/[email protected] | |
with: | |
channel: latest/stable | |
- name: Install dependencies | |
run: | | |
sudo snap install --classic --channel edge snapcraft | |
# Setup Launchpad credentials | |
mkdir -p ~/.local/share/snapcraft | |
echo -e "$LAUNCHPAD_TOKEN" >> ~/.local/share/snapcraft/launchpad-credentials | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Actions" | |
- name: yq - portable yaml processor | |
uses: mikefarah/yq@v4 | |
- if: ${{ matrix.confinement == 'classic' }} | |
name: Convert to Classic Snap | |
run: ./make-classic.sh | |
- name: Build Snap (remote) | |
run: snapcraft remote-build --launchpad-accept-public-upload |