Skip to content

Commit

Permalink
Merge pull request #615 from threefoldtech/development_fix_publish_wo…
Browse files Browse the repository at this point in the history
…rkflow

Development fix publish workflow
  • Loading branch information
rawdaGastan authored Jan 9, 2024
2 parents 17267f8 + 574fc49 commit cf19a8c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- run: git fetch --prune --unshallow

- name: Get latest version
run: |
echo "TAG_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
id: version

- name: Log in to the Container registry
uses: docker/login-action@v3.0.0
with:
Expand All @@ -58,11 +65,11 @@ jobs:
context: .
file: ./${{ matrix.dir }}/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ghcr.io/threefoldtech/${{ matrix.image }}:${{ steps.version.outputs.TAG_VERSION }}
labels: ${{ steps.meta.outputs.labels }}
# For workflows triggered by release, `github.ref_name` is the short name for the release tag created.
build-args: |
version=${{ github.ref_name }}
version=${{ steps.version.outputs.TAG_VERSION }}
# - name: Push flist to grid hub
# uses: fjogeleit/http-request-action@v1
Expand Down

0 comments on commit cf19a8c

Please sign in to comment.