Skip to content

shellcheck exceptions #139

shellcheck exceptions

shellcheck exceptions #139

Workflow file for this run

name: Build and push a container image
on: push
jobs:
build:
runs-on: ubuntu-latest
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: pip3 install -r ops-requirements.txt
- 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