Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remastered actions #9

Merged
merged 3 commits into from
Oct 5, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
split binary and container releases
  • Loading branch information
infamousjoeg committed Oct 5, 2020
commit 2aea477d452f20b55e46555c7b6df33df598f04a
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ jobs:
with:
name: Release Executables
path: |
./bin/*_authenticator*
./bin/*_cybr*
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: cybr-cli CD
name: Release Binary

on:
release:
types: [published]

jobs:
release:
name: Release Executables
name: Release Binaries
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/release-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release Container

on:
release:
types: [published]

jobs:
release:
name: Release Containers
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Read version from release.json
uses: notiz-dev/github-action-json-property@release
id: client_version
with:
path: 'release.json'
prop_path: 'version'
- name: Build Docker Container Package
run: |
docker build -t nfmsjoeg/cybr-cli:$TAG_NAME .
docker save nfmsjoeg/cybr-cli:$TAG_NAME > ./bin/docker_cybr.tar
env:
TAG_NAME: ${{ steps.client_version.outputs.prop }}
- name: Build and Push Docker Container to DockerHub
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: nfmsjoeg/cybr-cli
tags: ${{ steps.client_version.outputs.prop }}
- name: Build and Push Docker Container to GitHub Packages
uses: docker/build-push-action@v1
with:
username: infamousjoeg
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: infamousjoeg/cybr-cli/cybr-cli
tags: ${{ steps.client_version.outputs.prop }}
env:
DOCKERHUB_USERNAME: infamousjoeg
DOCKERHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}