Skip to content

Commit

Permalink
feat: add alpine image with curl
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaizet-ledger committed Jul 16, 2024
1 parent 0540156 commit 8116e02
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/scroll-alpine-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and publish docker image

on:
push:
tags:
- 'scroll-alpine-*'
jobs:
build:
name: Clone, Build, Publish
runs-on: ubuntu-latest
steps:

- name: Check out repository
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract tag version
id: extract_tag
run: |
# Extract the tag version part from the ref name
VERSION=$(echo "${GITHUB_REF##*/}" | sed 's/^scroll-alpine-//')
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Build image
id: build
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPOSITORY: scroll-alpine
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
file: custom-images/scroll-alpine/Dockerfile
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:${{ env.VERSION }}
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPOSITORY }}:latest
6 changes: 6 additions & 0 deletions custom-images/scroll-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Use the latest Alpine base image
FROM alpine:3.20.1

# Install tools
RUN apk update
RUN apk add curl

0 comments on commit 8116e02

Please sign in to comment.