Skip to content

Commit

Permalink
Upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Nov 14, 2023
1 parent 87fa4c0 commit 5cdcc52
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,24 @@ jobs:
with:
username: joepmeneer
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Pipeline
run: earthly --ci --output -P +main-pipeline --artifact +build-server/atomic-server-bin --artifact +e2e/test-results
- name: Put back the git branch into git (Earthly uses it for tagging)
run: |
branch=""
if [ -n "$GITHUB_HEAD_REF" ]; then
branch="$GITHUB_HEAD_REF"
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
- name: Earthly pipeline
run: earthly --ci --output -P +main-pipeline --artifact +e2e/test-results
- name: Upload test artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: test-results
path: ./test-results/

# - name: Clippy
# run: earthly +clippy
# - name: Build
Expand Down
5 changes: 4 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ deps:
RUN rustup target add x86_64-unknown-linux-musl
RUN apt update && apt install -y musl-tools musl-dev g++-x86-64-linux-gnu libc6-dev-amd64-cross libgtk-3-dev libsoup2.4-dev
# Tauri deps
RUN apt install javascriptcoregtk-4.1 libsoup-3.0 webkit2gtk-4.1 -y
# RUN apt install javascriptcoregtk-4.1 libsoup-3.0 webkit2gtk-4.1 -y
RUN update-ca-certificates

prepare-cache:
Expand Down Expand Up @@ -62,7 +62,10 @@ docker:
EXPOSE 80
VOLUME /atomic-storage
ENTRYPOINT ["/atomic-server-bin"]
# Push to github container registry
SAVE IMAGE --push ghcr.io/atomicdata-dev/atomic-server:latest
# Push to dockerhub
SAVE IMAGE --push joepmeneer/atomic-server:latest

e2e:
FROM mcr.microsoft.com/playwright:v1.38.0-jammy
Expand Down

0 comments on commit 5cdcc52

Please sign in to comment.