Skip to content

Commit

Permalink
Merge pull request #3 from Overmuse/SR/update_tags
Browse files Browse the repository at this point in the history
change format to semver
  • Loading branch information
SebRollen authored Apr 14, 2021
2 parents 9c37551 + 8733956 commit 684a7f7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 32 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
on:
push:
branches:
- main
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- 'Dockerfile'
- 'src/**'
- '.github/**'

name: Deploy
on:
release:
types: [published]

jobs:
cancel-previous:
Expand Down Expand Up @@ -74,7 +66,7 @@ jobs:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: timekeeper
DOCKER_BUILDKIT: 1
IMAGE_TAG: ${{ github.sha }}
IMAGE_TAG: ${{ github.event.release.name }}
run: |
docker build --ssh default -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
39 changes: 20 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "timekeeper"
version = "0.1.0"
version = "1.0.0"
authors = ["Sebastian Rollen <[email protected]>"]
edition = "2018"

Expand Down

0 comments on commit 684a7f7

Please sign in to comment.