Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nohoster committed Mar 3, 2024
1 parent 8ee666e commit ad7d81a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,9 @@ jobs:
sudo apt update
sudo apt install -y gcc-aarch64-linux-gnu musl-tools
# Using DATE-TIME for release name
- name: Date
id: date
run: echo "DATE=$(date +%Y%m%d-%H%M)" >> "$GITHUB_OUTPUT"

# In case app version is prefered
# - name: Versions
# id: version
# run: echo "VERSION=$(cargo metadata --format-version 1 --no-deps | jq .packages[0].version -r | sed 's/^/v/')" >> "$GITHUB_OUTPUT"
- name: Versions
id: version
run: echo "VERSION=$(cargo metadata --format-version 1 --no-deps | jq .packages[0].version -r | sed 's/^/v/')" >> "$GITHUB_OUTPUT"

- name: Build
run: cargo build --release --target ${{ matrix.target }}
Expand All @@ -66,9 +60,16 @@ jobs:

- name: Upload release
uses: softprops/action-gh-release@v1
if: github.base_ref != 'main' && github.event_name == 'release'
with:
tag_name: ${{ steps.date.outputs.DATE }}
tag_name: ${{ steps.version.outputs.VERSION }}
name: ${{ steps.version.outputs.VERSION }} - ${{ github.event.head_commit.message }}
draft: true
files: |
redlib-${{ matrix.target }}.tar.gz
body: |
- ${{ github.event.head_commit.message }} ${{ github.sha }}
generate_release_notes: true



8 changes: 4 additions & 4 deletions .github/workflows/main-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
name: Login to Quay.io Container Registry
uses: docker/login-action@v3
with:
registry: quay.io
Expand Down Expand Up @@ -93,10 +93,10 @@ jobs:
type=sha
type=raw,value=latest,enable={{is_default_branch}}
-
name: Login to GitHub Container Registry
name: Login to Quay.io Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
-
Expand All @@ -106,7 +106,7 @@ jobs:
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
- name: Oush README to Quay.io
- name: Push README to Quay.io
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_APIKEY: ${{ secrets.APIKEY__QUAY_IO }}
Expand Down

0 comments on commit ad7d81a

Please sign in to comment.