Skip to content

Commit

Permalink
Merge branch 'master' into release-v0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
roehrich-hpe committed Feb 21, 2024
2 parents 8f174f3 + 7917e52 commit d304211
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 41 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
name: Docker build and push

on:
push:
branches:
- '*'
tags:
- 'v*'
pull_request:
branches:
- 'master'
- 'releases/v*'
on: [push]

env:
# TEST_TARGET: Name of the testing target in the Dockerfile
Expand All @@ -19,9 +10,6 @@ env:
# The docker test current fails on this project
DO_TEST: false

# DO_PUSH - true to push to the HPE_DEPLOY_REPO, false to not push
DO_PUSH: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -103,3 +91,23 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}

create_release:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Repair tag
run: git fetch -f origin ${{ github.ref }}:${{ github.ref }}
- name: Verify that the tag is annotated
run: if test x$(git for-each-ref ${{ github.ref }} | awk '{print $2}') = xtag; then /bin/true; else echo "\"${{ github.ref }}\" does not look like an annotated tag!"; /bin/false; fi
- name: Release
uses: softprops/action-gh-release@v1
with:
#prerelease: true
generate_release_notes: true

28 changes: 0 additions & 28 deletions .github/workflows/verify_tag.yaml

This file was deleted.

0 comments on commit d304211

Please sign in to comment.