Skip to content

Commit 18810b6

Browse files
committed
Push docker image in CI using earthly #724
1 parent 81013e9 commit 18810b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
- name: Earthly build, test
2828
run: earthly --org ontola --ci --sat henk -P +pipeline
2929
- name: Earthly build and push docker
30-
run: earthly --org ontola --ci --sat henk -P --push +docker --tag="${{ steps.meta.outputs.tags }}"
30+
run: earthly --org ontola --ci --sat henk -P --push +docker --tags="${{ steps.meta.outputs.tags }}"

Earthfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ lint:
6464

6565
docker:
6666
FROM jeanblanchard/alpine-glibc:3.17.5
67-
ARG tag="latest,\$EARTHLY_GIT_SHORT_HASH"
67+
ARG tags="joepmeneer/atomic-server:develop"
6868
# Some glibc deps are missing, installing it errors so ignore.
6969
RUN apk add gcompat 2>/dev/null || true
7070
COPY --chmod=0755 +build/atomic-server /atomic-server-bin
@@ -79,7 +79,7 @@ docker:
7979
# Push to github container registry
8080
# SAVE IMAGE --push ghcr.io/atomicdata-dev/atomic-server:${tag}
8181
# Push to dockerhub
82-
SAVE IMAGE --push joepmeneer/atomic-server:${tag}
82+
SAVE IMAGE --push ${tags}
8383

8484
setup-playwright:
8585
FROM mcr.microsoft.com/playwright:v1.38.0-jammy

0 commit comments

Comments
 (0)