Skip to content

Updating file reference #21

Updating file reference

Updating file reference #21

Workflow file for this run

name: Docker Test
on:
push:
branches: ["feature/angular"]
permissions:
contents: write
jobs:
determine_version:
runs-on: ubuntu-latest
outputs:
latest_git_version: ${{steps.get_latest_git_version.outputs.value}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get latest git version
id: get_latest_git_version
run: |
LATEST_GIT_TAG=$(git describe --tags --abbrev=0)
echo "LATEST_GIT_TAG=$LATEST_GIT_TAG" >> $GITHUB_ENV
echo "value=$LATEST_GIT_TAG" >> "$GITHUB_OUTPUT"
publish_to_docker_hub:
uses: craigiswayne/ci-cd/.github/workflows/docker-image-to-docker-hub.yml@feature/reusable-workflow
with:
docker_hub_username: 'craigiswayne'
docker_hub_repository: 'prototype'
secrets:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
release:
needs: [determine_version, publish_to_docker_hub]
runs-on: ubuntu-latest
steps:
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: true
tag_name: ${{ env.VERSION }}
name: Release ${{ env.VERSION }}
draft: false
prerelease: false
env:
VERSION: ${{needs.determine_version.outputs.latest_git_version}}