From 83c239ddc9a6acc15dc079f6ed09d08652f695ea Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Wed, 7 Apr 2021 11:24:39 -0400 Subject: [PATCH] github actions update (#5) * Get Group api test * Initial Group Tests * Most Delete Group Tests * Group Tests Complete * Refactor tests and move to test dir * Refactor tests and move to test dir * changed wirecat --> netmaker. Changed defaults to be more sensible * putting netmaker default port 1 above WG port to avoid conflicts with preexisting setups * fixed client side for multinet and added group filter to query params server side. * fixed client side for multinet and added group filter to query params server side. * cleaned up netclient uninstall for multiple networks * added access token for ease of configuration * added access token for ease of configuration * peer update functionality * auto delete timestamp works * Arm docker (#1) * learning github actions * pubish docker * pubish docker * fixt uses * docker git action * rm arm7 * more events and tags * fixed yml file * simplified workflow * simplified workflow * fix missing tags * another fix to yml * another fix to yml * fixing yml * another try * tags * remove ghaction-docker-meta * separate actions for dev & master Co-authored-by: Matthew R Kasun * update docker image generation (#3) * learning github actions * pubish docker * pubish docker * fixt uses * docker git action * rm arm7 * more events and tags * fixed yml file * simplified workflow * simplified workflow * fix missing tags * another fix to yml * another fix to yml * fixing yml * another try * tags * remove ghaction-docker-meta * separate actions for dev & master * update docker generation on pulls * fix repo name Co-authored-by: Matthew R Kasun * consolidate git actions * Update publish-docker.yml * Delete publish-docker-latest.yml Co-authored-by: Matthew R Kasun Co-authored-by: afeiszli Co-authored-by: Alex <31018251+afeiszli@users.noreply.github.com> --- .github/workflows/publish-docker-latest.yml | 33 --------------------- .github/workflows/publish-docker.yml | 10 +++---- 2 files changed, 5 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/publish-docker-latest.yml diff --git a/.github/workflows/publish-docker-latest.yml b/.github/workflows/publish-docker-latest.yml deleted file mode 100644 index 43f4f847..00000000 --- a/.github/workflows/publish-docker-latest.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Publish Docker - -on: - push: - branches: - - 'master' -jobs: - docker: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v2 - with: - context: . - platforms: linux/amd64, linux/arm64 - push: true - tags: nusak/netmaker:latest diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 98ab90fc..7bc3ddff 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -11,24 +11,24 @@ jobs: steps: - uses: FranzDiebold/github-env-vars-action@v2 - name: Set Environment Variables - run: | + run: | echo "BUILD_VER=v0.0.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV - name: Checkout uses: actions/checkout@v2 - - + - name: Set up QEMU uses: docker/setup-qemu-action@v1 - - + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - + - name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - + - name: Build and push uses: docker/build-push-action@v2 with: