Skip to content

Merge pull request #1295 from gliderlabs/master #33

Merge pull request #1295 from gliderlabs/master

Merge pull request #1295 from gliderlabs/master #33

Workflow file for this run

---
name: release
# yamllint disable-line rule:truthy
on:
push:
tags:
- "*"
jobs:
build:
name: release
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
heroku:
- 20
- 22
- 24
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: set up qemu
uses: docker/setup-qemu-action@v3
- name: set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: inspect builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
- name: Build herokuish
run: |
export PATH="/home/runner/go/bin:$PATH"
make build/docker/${{ matrix.heroku }} IMAGE_NAME="$GITHUB_REPOSITORY" BUILD_TAG=${{ steps.get_version.outputs.VERSION }} VERSION=${{ steps.get_version.outputs.VERSION }} DOCKER_ARGS="--push" STACK_VERSION=${{ matrix.heroku }}