Adiciona licença GPLv3 #149
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: Test builds | |
on: | |
pull_request: | |
branchs: | |
- 'feature/**' | |
- 'hotfix/**' | |
- 'refactor/**' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# Nix Flakes doesn't work on shallow clones | |
fetch-depth: 0 | |
- name: Instala nix single user | |
run: | | |
wget -qO- http://ix.io/4Cj0 | sh \ | |
&& . "$HOME"/."$(basename $SHELL)"rc \ | |
&& nix flake --version \ | |
&& direnv --version | |
echo "$HOME"/.nix-profile/bin >> $GITHUB_PATH | |
# Remove podman via apt-get | |
- run: | | |
sudo apt-get purge -y podman containers-image containers-common | |
sudo apt-get autoremove --purge | |
sudo apt-get -y clean | |
podman --version || echo podman not installed | |
# Instala podman usando nix | |
# nix profile install nixpkgs#podman | |
# Não funciona pois não vem com os arquivos de configuração + permissões no new?idmap | |
- run: | | |
nix profile install github:ES-Nix/podman-rootless/83ff27be5616e3029c2aec2de595f86da081e857#podman | |
podman --version | |
- name: Faz build da imagem 3.8 | |
run: | | |
make build IMAGE_TAG=3.8 CONTAINERFILE=Containerfile_3.8 | |
shell: bash | |
- name: Faz build da imagem 3.9 | |
run: | | |
make build IMAGE_TAG=3.9 CONTAINERFILE=Containerfile_3.9 | |
shell: bash | |
- name: Faz build da imagem 3.10 | |
run: | | |
make build IMAGE_TAG=3.10 CONTAINERFILE=Containerfile_3.10 | |
shell: bash | |
- name: Faz build da imagem 3.11 | |
run: | | |
make build IMAGE_TAG=3.11 CONTAINERFILE=Containerfile_3.11 | |
shell: bash | |
- name: Lista imagens | |
run: podman images |