Skip to content

Commit

Permalink
1.1.1 (#141)
Browse files Browse the repository at this point in the history
* Setup improvements (#140)

* Seperate build process for quicker builds (#142)
  • Loading branch information
jvrck authored Oct 10, 2023
1 parent 69cd693 commit e8e652a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/push-image-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,28 @@ jobs:
ghcr.io/jvrck/bbripper:latest
ghcr.io/jvrck/bbripper:${{ github.ref_name }}
build-and-push-awscli-images:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to Github Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker with AWS
uses: docker/build-push-action@v2
with:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.1.1] - 2023-10-11

### Added

- Setup improvements.
- Production build improvements.

## [1.1.0] - 2023-10-11

### Added
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ COPY requirements.txt /ripper
COPY bb-ripper/ /ripper/
COPY setup.sh /ripper

RUN apt-get update && apt-get upgrade -y && apt-get install -y git
RUN chmod +x setup.sh && ./setup.sh && rm setup.sh
RUN pip install -r requirements.txt

Expand Down
8 changes: 7 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
set -ex

# Update apt and install git
apt-get update && apt-get upgrade -y && apt-get install -y git

# Install AWS CLI
if [ "$AWSCLI" == "TRUE" ] ; then
# Required for AWS CLI download and unzip. Remove after installation.
Expand All @@ -16,5 +19,8 @@ if [ "$AWSCLI" == "TRUE" ] ; then
# Clean up after installation.
apt-get -y --purge remove curl unzip ;
else
echo Argument not provided ;
echo AWSCLIE argument not provided ;
fi

# Clean up apt cache
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

0 comments on commit e8e652a

Please sign in to comment.