From 0fe5c8ce0304d3a8c56695c928aa4a6ee71ebc98 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Wed, 20 Mar 2024 09:45:06 +0000 Subject: [PATCH] ci: login to ghcr --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d451627..6c4db09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Earthly snapshot +name: Earthly release on: push: tags: @@ -12,5 +12,11 @@ jobs: - uses: actions/checkout@v4 - name: Download latest earthly run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.6/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Run earthly run: earthly --ci --push +ci --SNAPSHOT=false --GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}