Skip to content
Snippets Groups Projects
Select Git revision
  • 8ef77cdbd0b222513bdaaa6bebbc42d145b5b35d
  • master default
  • unjailbreak
  • fix-nix
  • rahix/new-build
  • rahix/freertos10
  • dualcore
7 results

push.sh

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    push.sh 371 B
    #!/usr/bin/env bash
    
    # Build and push the deploy env Docker container to the Gitlab container registry.
    
    set -e
    
    function rev() {
        ( cd $1; git describe --always --match "v[0-9].*" --dirty )
    }
    
    IMAGE=registry.k0.hswaw.net/q3k/card10-lint-env
    TAG=$(TZ=UTC date +%Y%m%d-%H%M%SZ)-$(rev .)
    
    docker build -t $IMAGE:$TAG .
    docker push $IMAGE:$TAG
    
    echo "Pushed $IMAGE:$TAG"