| uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # 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' || github.event_name == 'release' }}" |
| 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@f35ff2cb99d407368b5c727adbcc14a2ed81d509 # v2.2.0 |
| src: ghcr.io/vexxhost/atmosphere:${{ github.sha }} |
| dst: ghcr.io/vexxhost/atmosphere:${{ github.event.release.tag_name }} |