From af9c5d3de1fbc8dbda31050a7675b694016e6b20 Mon Sep 17 00:00:00 2001 From: Julien B Date: Fri, 11 Dec 2020 17:32:33 +0100 Subject: [PATCH] Add support of MacOS/Darwin. Schedule pipeline every 1st day of the month --- .github/workflows/build_pipeline.yml | 14 +++++++++----- CHANGELOG.md | 5 +++++ README.md | 3 ++- VERSION | 2 +- constants/constants.go | 2 +- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_pipeline.yml b/.github/workflows/build_pipeline.yml index a344791..981a219 100644 --- a/.github/workflows/build_pipeline.yml +++ b/.github/workflows/build_pipeline.yml @@ -1,8 +1,10 @@ name: EC2Cryptomatic build and deployment on: - - push - - pull_request + push: + pull_request: + schedule: + - cron: '0 12 1 * *' jobs: @@ -50,11 +52,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - os: [linux, windows, freebsd] + os: [linux, windows, freebsd, darwin] arch: [amd64, arm] exclude: - os: windows arch: arm + - os: darwin + arch: arm fail-fast: true steps: @@ -78,7 +82,7 @@ jobs: code_deploying: needs: [code_linting, code_testing, code_compiling] runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' + if: success() && github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v2 - name: Set VERSION variable @@ -116,4 +120,4 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} dockerfile: Dockerfile tags: "latest,${{ steps.vars.outputs.tag_version }}" - \ No newline at end of file + diff --git a/CHANGELOG.md b/CHANGELOG.md index a3e1a8f..d357b70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.3.0 + +- Adding support of MacOS +- Pipeline will run every 1st day of the month at 12:00AM + ## 2.2.4 - Improving Github Actions pipeline diff --git a/README.md b/README.md index 09fcaee..6b85792 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Github Action](https://github.com/jbrt/ec2cryptomatic/workflows/publish-docker-image/badge.svg)](https://github.com/jbrt/ec2cryptomatic/actions?workflow=publish-docker-image) ![Docker Pulls](https://img.shields.io/docker/pulls/jbrt/ec2cryptomatic.svg?label=pulls&logo=docker) -[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=jbrt_ec2cryptomatic)](https://sonarcloud.io/dashboard?id=jbrt_ec2cryptomatic) +[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=jbrt_ec2cryptomatic&metric=alert_status)](https://sonarcloud.io/dashboard?id=jbrt_ec2cryptomatic) Encrypt EBS volumes from AWS EC2 instances @@ -108,6 +108,7 @@ Versions currently supported: - Linux (x86_64, ARM) - FreeBSD (x86_64, ARM) +- MacOS/Darwin (x86_64 only) - Windows (x86_64 only) ## Example diff --git a/VERSION b/VERSION index 530cdd9..276cbf9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.4 +2.3.0 diff --git a/constants/constants.go b/constants/constants.go index 71c5ce2..31e9def 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -2,7 +2,7 @@ package constants const ( // VERSION is the overall version of the program - VERSION string = "2.2.4" + VERSION string = "2.3.0" // VolumeMaxAttempts how many attempts EC2 EBS waiters will used between SDK actions (snapshot ebsvolume) VolumeMaxAttempts int = 10000 // InstanceMaxAttempts how many attempts EC2 waiters will used between SDK actions (attach/detach ebsvolume)