Skip to content

Commit

Permalink
Update CI post migration (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
EngHabu authored Feb 4, 2021
1 parent 00393c9 commit 54c15f0
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
run: yarn install --frozen-lockfile
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.RELEASEBOT_TOKEN }}
GIT_AUTHOR_NAME: "service-github-lyft-semantic-release"
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_COMMITTER_NAME: "service-github-lyft-semantic-release"
GIT_COMMITTER_EMAIL: "[email protected]"
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}
GIT_AUTHOR_NAME: "flyte bot"
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_COMMITTER_NAME: "flyte bot"
GIT_COMMITTER_EMAIL: "[email protected]"
run: npx semantic-release
check_for_tag:
name: Get Release Tag
Expand Down Expand Up @@ -59,27 +59,9 @@ jobs:
- name: Push Docker Image to Github Registry
uses: whoan/docker-build-with-cache-action@v5
with:
username: "${{ secrets.PUBLISH_CONTAINER_ACTOR }}"
password: "${{ secrets.PUBLISH_CONTAINER }}"
username: "${{ secrets.FLYTE_BOT_USERNAME }}"
password: "${{ secrets.FLYTE_BOT_PAT }}"
image_name: ${{ github.repository }}
image_tag: latest,${{github.sha}},${{ needs.check_for_tag.outputs.currentTag }}
push_git_tag: true
registry: ghcr.io
push_dockerhub:
name: Build and push image to Dockerhub
needs: check_for_tag
runs-on: ubuntu-latest
if: needs.check_for_tag.outputs.currentTag
steps:
- uses: actions/checkout@v2
with:
ref: ${{ needs.check_for_tag.outputs.currentTag }}
- name: Push Docker Image to Dockerhub
uses: whoan/docker-build-with-cache-action@v5
with:
username: "${{ secrets.DOCKERHUB_USERNAME }}"
password: "${{ secrets.DOCKERHUB_PASSWORD }}"
image_name: ${{ secrets.DOCKERHUB_IMAGE_NAME }}
image_tag: latest,${{ github.sha }},${{ needs.check_for_tag.outputs.currentTag }}
push_git_tag: true
build_extra_args: "--compress=true"

0 comments on commit 54c15f0

Please sign in to comment.