Skip to content

Commit

Permalink
Fix CICD pipeline and update changelog date
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosnt committed May 31, 2023
1 parent 2f5449d commit cb60efc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 59 deletions.
89 changes: 31 additions & 58 deletions .github/workflows/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,48 @@ on:
types: [published]

jobs:
# docker-image:
# name: Docker Image
# runs-on: ubuntu-latest
# environment: docker-hub
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
docker-image:
name: Docker Image
runs-on: ubuntu-latest
environment: docker-hub
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

# - uses: actions/setup-node@v3
# with:
# node-version: 16
- uses: actions/setup-node@v3
with:
node-version: 16

# - name: Install dependencies
# working-directory: rekono/frontend
# run: npm install .
- name: Install dependencies
working-directory: rekono/frontend
run: npm install .

# - name: Configure Rekono backend
# working-directory: rekono/frontend
# run: echo "VUE_APP_DESKTOP_BACKEND_URL=http://127.0.0.1:8000" > .env.production
- name: Configure Rekono backend
working-directory: rekono/frontend
run: echo "VUE_APP_DESKTOP_BACKEND_URL=http://127.0.0.1:8000" > .env.production

# - name: Generate Desktop UI
# working-directory: rekono/frontend
# run: npm run electron:build
- name: Generate Desktop UI
working-directory: rekono/frontend
run: npm run electron:build

# - name: Build Docker image
# run: docker build --build-arg REKONO_VERSION=${{ github.event.release.name }} --file docker/debian/Dockerfile --tag ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }} .
- name: Build Docker image
run: docker build --build-arg REKONO_VERSION=${{ github.event.release.name }} --file docker/debian/Dockerfile --tag ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }} .

# - name: Publish Docker image in Docker Hub
# run: |
# docker tag ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }} ${{ secrets.DOCKER_USER }}/rekono:latest
# docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
# docker push ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }}
# docker push ${{ secrets.DOCKER_USER }}/rekono:latest
# docker logout
- name: Publish Docker image in Docker Hub
run: |
docker tag ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }} ${{ secrets.DOCKER_USER }}/rekono:latest
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_TOKEN }}
docker push ${{ secrets.DOCKER_USER }}/rekono:${{ github.event.release.name }}
docker push ${{ secrets.DOCKER_USER }}/rekono:latest
docker logout
debian-package:
name: Debian Package
runs-on: ubuntu-latest
environment: gitlab
# needs: docker-image
needs: docker-image
steps:
- name: Checkout GitLab repository
run: git clone https://gitlab.com/pablosnt/rekono.git rekono-deb
Expand Down Expand Up @@ -112,30 +112,3 @@ jobs:
if response.status_code != 201:
print(response.text)
assert(response.status_code == 201)
- name: Kali APT source
continue-on-error: true
run: |
sudo apt install wget gnupg2 -y
wget https://archive.kali.org/archive-key.asc
sudo apt-key add archive-key.asc
rm archive-key.asc
echo 'deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware' | sudo tee --append /etc/apt/sources.list
sudo apt update -y
sudo apt install kaboxer -y || sudo apt -f install -y
- name: Build DEB Package
working-directory: rekono-deb
run: dpkg-buildpackage -us -uc

- name: Upload DEB package as GitHub artifact
uses: actions/upload-artifact@v3
with:
name: rekono_${{ github.event.release.name }}_amd64.deb
path: rekono_${{ github.event.release.name }}_amd64.deb
if-no-files-found: warn

- name: Upload DEB package to GitHub release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload --repo pablosnt/rekono ${{ github.event.release.name }} rekono_${{ github.event.release.name }}_amd64.deb
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.6.1] - 2023-05-30
## [1.6.1] - 2023-05-31

### Security

Expand Down

0 comments on commit cb60efc

Please sign in to comment.