v0.1.0 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
docker: | |
name: Retag and push images | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- name: Login to registry | |
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3 | |
with: | |
platforms: 'arm64,amd64' | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3 | |
- name: Tag and push | |
run: | | |
IMAGE=ghcr.io/bradenrayhorn/mise | |
EXISTING_TAG=$IMAGE:next-${{ github.sha }} | |
TAG=${{ github.event.release.tag_name }} | |
RELEASE_VERSION="${TAG//v/}" | |
docker buildx imagetools create \ | |
--tag $IMAGE:$RELEASE_VERSION \ | |
--tag $IMAGE:latest \ | |
$EXISTING_TAG | |