Skip to content

Commit

Permalink
Add support of MacOS/Darwin. Schedule pipeline every 1st day of the m…
Browse files Browse the repository at this point in the history
…onth
  • Loading branch information
jbrt committed Dec 11, 2020
1 parent 67318f5 commit af9c5d3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build_pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: EC2Cryptomatic build and deployment

on:
- push
- pull_request
push:
pull_request:
schedule:
- cron: '0 12 1 * *'

jobs:

Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -116,4 +120,4 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile
tags: "latest,${{ steps.vars.outputs.tag_version }}"


5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.4
2.3.0
2 changes: 1 addition & 1 deletion constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af9c5d3

Please sign in to comment.