Skip to content

fix netcat

fix netcat #31

Workflow file for this run

name: CI
# https://github.com/actions/virtual-environments
on:
push:
branches: [ mcsps ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
run: |
#curl https://ipinfo.io/ip
#echo "My ip"
#curl -v https://${MTR}
#echo
#curl -v https://${MTR}/api/v1/repository/${REPO}/${IMAGE}
docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}" ${MTR}
go build -o swiss-army-knife main.go
export TAG=`git describe --match=$(git rev-parse --short=8 HEAD) --always --dirty --abbrev=8`
## fix for "layer does not exists" error
## https://github.com/moby/moby/issues/37965
export DOCKER_BUILDKIT=1
docker build -f package/Dockerfile -t ${MTR}/${REPO}/${IMAGE}:${TAG} .
docker push ${MTR}/${REPO}/swiss-army-knife:${TAG}
env:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
MTR: mtr.devops.telekom.de
REPO: mcsps
IMAGE: swiss-army-knife