Skip to content

Commit

Permalink
Use actions to login to GHCR (issue space-ros#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
eholum committed Sep 13, 2024
1 parent 5e4b88c commit 10320d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/earthly-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to ghcr
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up earthly
run: |
sudo wget https://github.com/earthly/earthly/releases/latest/download/earthly-linux-amd64 -O /usr/local/bin/earthly
Expand All @@ -54,5 +60,4 @@ jobs:
- name: Push the main spaceros image to GHCR
if: ${{ github.ref_name == '212/merge' }}
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
earthly --ci --push +push-image --TAG="ghcr.io/space-ros/space-ros:push-main-image" --LATEST=""

0 comments on commit 10320d5

Please sign in to comment.