Skip to content

Commit

Permalink
Reset target branch to main and do not cache for now (issue space-ros…
Browse files Browse the repository at this point in the history
  • Loading branch information
eholum committed Sep 13, 2024
1 parent 10320d5 commit ea160e4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/earthly-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,18 @@ jobs:
run: |
sudo wget https://github.com/earthly/earthly/releases/latest/download/earthly-linux-amd64 -O /usr/local/bin/earthly
sudo chmod 755 /usr/local/bin/earthly
# TODO: Set cache source to main before merging
- name: Build spaceros image
run: |
earthly --ci --output +sources
earthly --ci --remote-cache=ghcr.io/space-ros/space-ros:push-main-image +image
earthly --ci +image
- name: Push tagged spaceros images to Dockerhub
env:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_RW_TOKEN }}
if: ${{ github.ref_type == 'tag' }}
run: |
echo $DOCKER_HUB_TOKEN | docker login --username osrfbot --password-stdin
earthly --ci --push +push-image --TAG="osrf/space-ros:${{ github.ref_name }}" --LATEST="osrf/space-ros:latest"
# TODO: Set branch names to main before merging
- name: Push the main spaceros image to GHCR
if: ${{ github.ref_name == '212/merge' }}
if: ${{ github.ref_name == 'main' }}
run: |
earthly --ci --push +push-image --TAG="ghcr.io/space-ros/space-ros:push-main-image" --LATEST=""
earthly --ci --push +push-image --TAG="ghcr.io/space-ros/space-ros:main" --LATEST=""

0 comments on commit ea160e4

Please sign in to comment.