Skip to content

Commit

Permalink
gitops
Browse files Browse the repository at this point in the history
  • Loading branch information
mchmarny committed Nov 14, 2020
1 parent 9d35937 commit c807c16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/gitops-release-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,15 @@ jobs:
cd git-ops/app
go test -v -count=1 -race ./...
- name: Get the Numbers
- name: Variables
run: |
RELEASE_VERSION=${GITHUB_REF#refs/*/}
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV
BUILD_TIME=$(echo $(date +"%Y-%m-%dT%T"))
echo "BUILD_TIME=${BUILD_TIME}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v2.1
with:
context: ./git-ops/app
file: ./git-ops/app/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion git-ops/app/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_VERSION ?=v0.3.7
APP_VERSION ?=v0.3.8
APP_ID ?=app
APP_PORT ?=8080
IMAGE_NAME ?=git-ops-app
Expand Down

0 comments on commit c807c16

Please sign in to comment.