Skip to content

Commit

Permalink
Update release-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benknoll-umn authored Oct 31, 2023
1 parent 32e09a4 commit e1eb332
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ jobs:
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get version number
id: version
run:
VERSION=$(git describe)
VERSION=${VERSION#v}
run: |
export VERSION=$(git describe)
export VERSION=${VERSION#v}
echo "patch=${VERSION}" >> $GITHUB_OUTPUT
echo "minor=${VERSION%.*}}" >> $GITHUB_OUTPUT
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v5
env:
VERSION: ${{ env.version }}
with:
Expand All @@ -55,7 +55,7 @@ jobs:
type=semver,pattern=${{ steps.version.outputs.patch }}
type=semver,pattern=${{ steps.version.outputs.minor }}
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v5
with:
context: tools/docker
push: true
Expand Down

0 comments on commit e1eb332

Please sign in to comment.