Fix version (#474)

Co-authored-by: Jonas Plum <git@jonasplum.de>
This commit is contained in:
Jonas Plum
2022-10-02 20:10:57 +02:00
committed by GitHub
parent e987e46cbd
commit fc42d4043b

View File

@@ -125,17 +125,17 @@ jobs:
with: { go-version: '1.19', cache: true } with: { go-version: '1.19', cache: true }
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: { name: ui, path: ui/dist } with: { name: ui, path: ui/dist }
- name: Version
if: github.ref_type == 'tag' && github.ref_name != ''
run: |
echo ${{ github.ref_name }}
echo ${{ github.ref_name }} > VERSION
- run: go build -o catalyst ./cmd/catalyst/. - run: go build -o catalyst ./cmd/catalyst/.
- uses: docker/login-action@v2 - uses: docker/login-action@v2
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Version
if: github.ref_type == 'tag' && github.ref_name != ''
run: |
echo ${{ github.ref_name }}
echo ${{ github.ref_name }} > VERSION
- name: Extract metadata (tags, labels) for Docker - name: Extract metadata (tags, labels) for Docker
id: meta id: meta
uses: docker/metadata-action@v4 uses: docker/metadata-action@v4