Skip to content

Commit

Permalink
Change config to redlib-org account
Browse files Browse the repository at this point in the history
  • Loading branch information
nohoster committed Feb 24, 2024
1 parent 7d2771a commit 5ff99e3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,17 @@ jobs:
run: |
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: Build
run: cargo build --release --target ${{ matrix.target }}

Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/main-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types:
- completed
env:
REGISTRY_IMAGE: ghcr.io/nohoster/redlib
REGISTRY_IMAGE: quay.io/redlib/redlib

jobs:
build:
Expand All @@ -21,33 +21,33 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=sha
type=raw,value=latest,enable={{is_default_branch}}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
-
name: Build and push
id: build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
Expand Down Expand Up @@ -82,23 +82,23 @@ jobs:
path: /tmp/digests
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=sha
type=raw,value=latest,enable={{is_default_branch}}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
-
name: Create manifest list and push
working-directory: /tmp/digests
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG TARGET

RUN apk add --no-cache curl

RUN curl -L https://github.com/nohoster/redlib/releases/latest/download/redlib-${TARGET}.tar.gz | \
RUN curl -L https://github.com/redlib-org/redlib/releases/latest/download/redlib-${TARGET}.tar.gz | \
tar xz -C /usr/local/bin/

RUN adduser --home /nonexistent --no-create-home --disabled-password redlib
Expand Down

0 comments on commit 5ff99e3

Please sign in to comment.