Skip to content

chore: 🤖 remove alpine in favour of debian (#540) #179

chore: 🤖 remove alpine in favour of debian (#540)

chore: 🤖 remove alpine in favour of debian (#540) #179

Workflow file for this run

name: Build and push a new release
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
build:
name: GoReleaser build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: " 1.21.x"
id: go
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
docker:
name: Build container and push to DockerHub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Tags for Image
id: metadata
uses: docker/metadata-action@v5
with:
images: ministryofjustice/cloud-platform-cli
tags: |
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.metadata.outputs.tags }}
build-args: CLOUD_PLATFORM_CLI_VERSION=${{ steps.metadata.outputs.tags }}