Skip to content

v1.1.12

v1.1.12 #31

Workflow file for this run

name: Docker Release Build
on:
release:
types: [released, prereleased]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
run: |
make BUILD_VERSION="${GITHUB_REF##*/}" DOCKER_ARGS="\
--label commit=$GITHUB_SHA \
--label build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--label tag=${GITHUB_REF##*/} \
--tag ghcr.io/hyperledger/firefly-signer:${GITHUB_REF##*/}" \
docker
- name: Tag release
if: github.event.action == 'released'
run: docker tag ghcr.io/hyperledger/firefly-signer:${GITHUB_REF##*/} ghcr.io/hyperledger/firefly-signer:latest
- name: Push docker image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push ghcr.io/hyperledger/firefly-signer:${GITHUB_REF##*/}
- name: Push latest tag
if: github.event.action == 'released'
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push ghcr.io/hyperledger/firefly-signer:latest