Skip to content

Commit

Permalink
ci: deploying to main top docker
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal committed Oct 21, 2023
1 parent 85fbd92 commit e838e89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Master Update
name: Main Update
on:
push:
branches:
- master
- main
jobs:
run-tests:
runs-on: ubuntu-latest
Expand All @@ -16,21 +16,13 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get time of commit
run: echo "TIME=$(git log -1 --pretty=format:%ct)" >> $GITHUB_ENV
- name: Run tests, upload coverage and publish image
uses: docker/build-push-action@v3
with:
context: ./
file: ./build/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: aamdigital/replication-ms:latest
tags: aamdigital/deployer-ms:latest
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
UPLOAD_COVERAGE=${{ true }}
GIT_COMMIT_SHA=${{ github.sha }}
GIT_BRANCH=master
GIT_COMMITTED_AT=${{ env.TIME }}
CC_TEST_REPORTER_ID=${{ secrets.CODE_CLIMATE_ID }}
28 changes: 0 additions & 28 deletions .github/workflows/pull-request-update.yml

This file was deleted.

0 comments on commit e838e89

Please sign in to comment.