Skip to content

Commit

Permalink
Merge pull request #1 from haynescd/test
Browse files Browse the repository at this point in the history
Test yml
  • Loading branch information
haynescd authored Sep 13, 2024
2 parents 518f384 + c37dac8 commit 06a219d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Publish Image

on:
push:
branches:
- "master"

permissions:
contents: read
packages: write
attestations: write
id-token: write

jobs:
build-publish-dev-image:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
- name: Set git tag and SHA
run: |
VERSION=$(git tag --sort=committerdate | grep -E '[0-9]' | tail -1 | cut -b 1-7)
SHORT_SHA=${GITHUB_SHA:0:7}
TAG="${VERSION}-${SHORT_SHA}"
echo "TAG=${TAG}" >> $GITHUB_ENV
- name: Echo Git Tag
run: |
echo ${{ env.TAG }}

0 comments on commit 06a219d

Please sign in to comment.