Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image for releasing Pony related Emacs modes #66

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}"
Loading