name: docker-monica-build main on: push: tags: - '[0-9]+.*' jobs: dockerfile_lint: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: Dockerfile build: needs: dockerfile_lint runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Extract Git Tag id: get_tag run: echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV - name: Kaniko build uses: aevea/action-kaniko@v0.12.0 with: image: rogersik/monica registry: gitea.sikorski.cloud tag: '${{ env.TAG }}' cache: false # too much image tags; we should move to docker buildkit build_args: | GIT_TAG=${{ env.TAG }} username: rogersik password: ${{ secrets.REGISTRY_PASSWORD }}