Don't clear user cache, which now holds silicon syntaxes #145
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: Build and push a container image | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: install build tools from distro repos | |
run: sudo apt -yqq --no-install-recommends install ca-certificates zsh | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
- name: install build tools from PyPI | |
run: pipx install yamlpath | |
- name: install sops from GitHub | |
run: >- | |
wget -P /tmp | |
'https://github.com/getsops/sops/releases/download/v3.9.0/sops_3.9.0_amd64.deb' && | |
sudo dpkg -i /tmp/sops_*.deb | |
- name: configure sops secrets | |
run: >- | |
mkdir -p "$HOME/.config/sops/age" && | |
echo "$SOPS_SECRET" >"$HOME/.config/sops/age/keys.txt" && | |
echo "$SOPS_SECRET_DEV" >>"$HOME/.config/sops/age/keys.txt" | |
env: | |
SOPS_SECRET: ${{ secrets.SOPS_SECRET }} | |
SOPS_SECRET_DEV: ${{ secrets.SOPS_SECRET_DEV }} | |
- name: login to container registry | |
run: podman login -u "$QUAY_USER" -p "$QUAY_TOKEN" quay.io | |
env: | |
QUAY_USER: ${{ secrets.QUAY_USER }} | |
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} | |
- name: do the thing | |
run: >- | |
./mk/ctnr.sh -d dev --push && | |
./mk/ctnr.sh -d prod --push |