Skip to content

Commit

Permalink
Update nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergi0g authored Oct 25, 2024
1 parent e1eaf63 commit 186f44c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,23 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get Docker image tag
id: tag
run: |
if [ "${GITHUB_REF_NAME}" == "main" ]; then
TAG="nightly"
else
TAG="${GITHUB_REF_NAME}-nightly"
fi
echo "tag=$TAG" >> $GITHUB_ENV
- name: Build and push image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: ghcr.io/sergi0g/cup:nightly
tags: ghcr.io/sergi0g/cup:${{ steps.tag.outputs.tag }}
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down

0 comments on commit 186f44c

Please sign in to comment.