Skip to content

Commit

Permalink
Prepare first release version
Browse files Browse the repository at this point in the history
  • Loading branch information
odarbelaeze committed Apr 7, 2021
1 parent 82cd615 commit b2f2749
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 2 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ship-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: "Publish latest artifacts"

on:
push:
tags: v*

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
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_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: |
nextroll/ecs-ship:v1
nextroll/ecs-ship:v1.0
nextroll/ecs-ship:v1.0.0
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

pre-release:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2

-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

-
name: Test
run: go test -v ./...

-
name: Build
run: CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' .

-
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: False
files: |
LICENSE
ecs-ship
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 1.0.0 (21-04-07)

- First public release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ USAGE:
ecs-deploy [options] <cluster> <service>
VERSION:
0.1.0
1.0.0
GLOBAL OPTIONS:
--updates FILE, -u FILE Use an input FILE to describe service updates (default: stdin)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {
app := &cli.App{
Name: "ecs-ship",
Usage: "Deploy your aws ecs services.",
Version: "0.1.0",
Version: "1.0.0",
UseShortOptionHandling: true,
ArgsUsage: "<cluster> <service>",
UsageText: "ecs-deploy [options] <cluster> <service>",
Expand Down

0 comments on commit b2f2749

Please sign in to comment.