Skip to content

Commit

Permalink
Add image for releasing Pony related Emacs modes (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen authored Nov 27, 2023
1 parent d625764 commit 6e3a6b7
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ jobs:
- name: Docker build
run: "docker build --pull --file=actionlint/Dockerfile ."

validate-emacs-mode-release-image-builds:
name: Validate release Docker image builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker build
run: "docker build --pull --file=emacs-mode-release/Dockerfile ."

validate-release-a-library-image-builds:
name: Validate release-a-library Docker image builds
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions emacs-mode-release/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:3.18

RUN apk add --update --no-cache \
bash \
git
3 changes: 3 additions & 0 deletions emacs-mode-release/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# emacs-mode-release

Simple image with the tools needed to do a release of our Pony related Emacs modes.
17 changes: 17 additions & 0 deletions emacs-mode-release/build-and-push.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -o errexit
set -o nounset

#
# *** You should already be logged into GitHub Container Registry
# when you run this ***
#

NAME="ponylang/shared-docker-ci-emacs-mode-release"
TODAY=$(date +%Y%m%d)
DOCKERFILE_DIR="$(dirname "$0")"

NAME="ghcr.io/${NAME}"
docker build --pull -t "${NAME}:${TODAY}" "${DOCKERFILE_DIR}"
docker push "${NAME}:${TODAY}"

0 comments on commit 6e3a6b7

Please sign in to comment.