| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 |
| uses: earthly/actions-setup@v1 |
| github-token: ${{ secrets.GITHUB_TOKEN }} |
| - name: Login to GitHub Container Registry |
| uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3 |
| username: ${{ github.actor }} |
| password: ${{ secrets.GITHUB_TOKEN }} |
| run: earthly +image --tag ${{ github.sha }} |
| EARTHLY_PUSH: "${{ github.event_name == 'push' }}" |
| EARTHLY_REMOTE_CACHE: ghcr.io/vexxhost/atmosphere:cache |
| if: github.event_name == 'release' |
| - name: Login to GitHub Container Registry |
| uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3 |
| username: ${{ github.actor }} |
| password: ${{ secrets.GITHUB_TOKEN }} |
| uses: akhilerm/tag-push-action@85bf542f43f5f2060ef76262a67ee3607cb6db37 # v2.1.0 |
| src: ghcr.io/vexxhost/atmosphere:${{ github.sha }} |
| dst: ghcr.io/vexxhost/atmosphere:${{ github.event.release.tag_name }} |