Skip to content

Commit

Permalink
wip: temporarily disable CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
imiric committed Apr 21, 2024
1 parent ea8a27a commit 1e585c7
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/ci-earthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,44 +72,44 @@ jobs:
EARTHLY_ORG: ${{ secrets.EARTHLY_ORG }}
run: earthly --ci --output --sat disco --push +test

publish:
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref_name == 'main' }}
needs: [lint, test]
runs-on: ubuntu-22.04
steps:
- name: Setup Earthly
uses: earthly/actions/setup-earthly@v1
with:
version: v0.8.8
# QEMU is needed for building multiplatform OCI images
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
- name: Checkout code
uses: actions/checkout@v4
# Needed for Earthly tagging to work
- name: Put back the git branch into git
run: |
branch=""
if [ -n "$GITHUB_HEAD_REF" ]; then
branch="$GITHUB_HEAD_REF"
else
branch="${GITHUB_REF##*/}"
fi
git checkout -b "$branch" || true
- name: Docker Login
run: docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_TOKEN }}"
- name: Run +publish target
env:
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
EARTHLY_ORG: ${{ secrets.EARTHLY_ORG }}
run: earthly --ci --push --secret GH_TOKEN="${{ github.token }}" --sat disco +publish
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: dist/
retention-days: 7
# publish:
# if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref_name == 'main' }}
# needs: [lint, test]
# runs-on: ubuntu-22.04
# steps:
# - name: Setup Earthly
# uses: earthly/actions/setup-earthly@v1
# with:
# version: v0.8.8
# # QEMU is needed for building multiplatform OCI images
# - name: Setup QEMU
# id: qemu
# uses: docker/setup-qemu-action@v1
# with:
# image: tonistiigi/binfmt:latest
# platforms: all
# - name: Checkout code
# uses: actions/checkout@v4
# # Needed for Earthly tagging to work
# - name: Put back the git branch into git
# run: |
# branch=""
# if [ -n "$GITHUB_HEAD_REF" ]; then
# branch="$GITHUB_HEAD_REF"
# else
# branch="${GITHUB_REF##*/}"
# fi
# git checkout -b "$branch" || true
# - name: Docker Login
# run: docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_TOKEN }}"
# - name: Run +publish target
# env:
# EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
# EARTHLY_ORG: ${{ secrets.EARTHLY_ORG }}
# run: earthly --ci --push --secret GH_TOKEN="${{ github.token }}" --sat disco +publish
# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# with:
# name: binaries
# path: dist/
# retention-days: 7

0 comments on commit 1e585c7

Please sign in to comment.