Skip to content

Commit 7f29de6

Browse files
authored
Update to using new image scheme for ponyc images (#21)
1 parent 9716cfc commit 7f29de6

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/update-latest-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Update latest images
33
on:
44
repository_dispatch:
55
types:
6-
- ponyc-musl-nightly-released
6+
- ponyc-nightly-image-pushed
77
workflow_dispatch:
88
push:
99
branches:

.github/workflows/update-release-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Update release images
33
on:
44
repository_dispatch:
55
types:
6-
- ponyc-musl-released
6+
- ponyc-release-image-pushed
77
workflow_dispatch:
88
push:
99
branches:
@@ -76,7 +76,7 @@ jobs:
7676

7777
build-public-specific-version-image:
7878
if: |
79-
github.event.action == 'ponyc-musl-released'
79+
github.event.action == 'ponyc-release-image-pushed'
8080
8181
name: Build public image for just released version
8282
runs-on: ubuntu-latest
@@ -110,7 +110,7 @@ jobs:
110110

111111
build-private-specific-version-image:
112112
if: |
113-
github.event.action == 'ponyc-musl-released'
113+
github.event.action == 'ponyc-release-image-pushed'
114114
115115
name: Build private image for just released version
116116
runs-on: ubuntu-latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG FROM_TAG=release-alpine
1+
ARG FROM_TAG=release
22
FROM ghcr.io/ponylang/ponyc:${FROM_TAG}
33

44
ARG PACKAGE

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ endif
1717
all: pylint
1818

1919
build:
20-
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="${version}-alpine" -t "${IMAGE}:${version}" .
20+
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="${version}" -t "${IMAGE}:${version}" .
2121

2222
build-latest:
23-
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="alpine" -t "${IMAGE}:latest" .
23+
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="nightly" -t "${IMAGE}:latest" .
2424

2525
build-release:
26-
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="release-alpine" -t "${IMAGE}:release" .
26+
docker build --pull --build-arg PACKAGE="${PACKAGE}" --build-arg FROM_TAG="release" -t "${IMAGE}:release" .
2727

2828
push:
2929
docker push "${IMAGE}:${version}"

0 commit comments

Comments
 (0)