fix: do not run submodules if not necessary #43
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
on: push | |
env: | |
IMAGE_NAME: flovilmart/dev-env | |
jobs: | |
docker: | |
name: Docker build | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up SSH | |
uses: MrSquaare/ssh-setup-action@2d028b70b5e397cf8314c6eaea229a6c3e34977a # v3.1.0 | |
with: | |
host: github.com | |
private-key: ${{ secrets.SSH_GITHUB_PPK }} | |
private-key-name: github-ppk | |
- name: Submodules | |
run: sh ./install.sh submodules | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
ssh: default | |
push: true | |
tags: flovilmart/dotfiles:latest |