Skip to content

Commit

Permalink
Merge pull request #1 from cjh1/build-updates
Browse files Browse the repository at this point in the history
Update GitHub Actions to push to ghcr.io
  • Loading branch information
alexlovelltroy authored Dec 13, 2024
2 parents 3699a20 + 21adf31 commit 08b3756
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 18 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build_and_publish_image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: build and publish images
on:
workflow_dispatch:
push:
tags:
- v*
permissions:
packages: write
contents: read
jobs:
build-csm-rie:
runs-on: ubuntu-latest
steps:
- name: check out the repo
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/openchami/csm-rie
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=sha
- name: setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: login to github container repo
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and push csm-rie image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64, linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
12 changes: 0 additions & 12 deletions .github/workflows/build_and_release_image.yaml

This file was deleted.

9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

FROM artifactory.algol60.net/docker.io/library/alpine:3.17 AS base
FROM cgr.dev/chainguard/wolfi-base AS base

COPY src/requirements.txt /app/requirements.txt

Expand All @@ -43,8 +43,6 @@ RUN set -ex \
openssl-dev \
libffi-dev \
gcc \
musl-dev \
cargo \
curl \
&& pip3 install --upgrade \
pip \
Expand All @@ -57,9 +55,8 @@ RUN set -ex \
gcc \
python3-dev \
openssl-dev \
libffi-dev \
musl-dev \
cargo
libffi-dev


# Insert our emulator extentions
COPY src /app
Expand Down

0 comments on commit 08b3756

Please sign in to comment.