From 2301bc1537ab9f072eb7d9bc8dfbda0f658c6598 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sat, 15 May 2021 23:12:19 +0200 Subject: [PATCH] Delete update-images.yml --- .github/workflows/update-images.yml | 42 ----------------------------- 1 file changed, 42 deletions(-) delete mode 100644 .github/workflows/update-images.yml diff --git a/.github/workflows/update-images.yml b/.github/workflows/update-images.yml deleted file mode 100644 index b3c2bff..0000000 --- a/.github/workflows/update-images.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Update images - -on: - schedule: - - cron: '0 4 * * 6' - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Build agentd server image - run: | - SERVER_VERSION=$(cat server/AgentDeploy.ExternalApi/AgentDeploy.ExternalApi.csproj | grep '' | sed 's/.*\(.*\)<\/PackageVersion>/\1/' | tr -d '[[:space:]]' | sed -E s/\.[0-9]+$//) - MAJOR_SERVER_VERSION=$(echo "$SERVER_VERSION" | sed -E s/\.[0-9]+$//) - - docker build -f container/server/Dockerfile \ - -t "mrosenbjerg/agentd-server:${SERVER_VERSION}" \ - -t "mrosenbjerg/agentd-server:${MAJOR_SERVER_VERSION}" \ - server - - - name: Build agentd client image - run: | - CLIENT_VERSION=$(cat client/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]' | sed -E s/\.[0-9]+$//) - MAJOR_CLIENT_VERSION=$(echo "$CLIENT_VERSION" | sed -E s/\.[0-9]+$//) - - docker build -f container/client/Dockerfile \ - -t "mrosenbjerg/agentd-client:${CLIENT_VERSION}" \ - -t "mrosenbjerg/agentd-client:${MAJOR_CLIENT_VERSION}" \ - client - - - name: Login to Docker Hub - run: docker login --username mrosenbjerg --password ${{ secrets.DOCKER_TOKEN }} - - - name: Push agentd server image - run: docker push --all-tags mrosenbjerg/agentd-server - - - name: Push agentd client image - run: docker push --all-tags mrosenbjerg/agentd-client