fix(rename): modify to use my forgejo instance.

This commit is contained in:
silvana 2025-01-20 08:14:40 +01:00
parent db523065e0
commit 8a86ede6ee
Signed by: silvana
GPG key ID: 889CA3FB0F54CDCC
4 changed files with 34 additions and 19 deletions

View file

@ -5,22 +5,38 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: docker
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Clear image from cache - name: login to docker registry
run: | uses: docker/login-action@v3
docker images git.kemitix.net/${{ env.GITHUB_REPOSITORY }} -q | sort -u | xargs -r docker rmi --force with:
docker system prune --force --all registry: git.ragarock.moe
username: silvana
password: ${{ secrets.FORGEJO_TOKEN }}
- name: Build - name: setup buildx
run: docker build . -t git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest uses: docker/setup-buildx-action@v3
- name: Login - name: build and push
run: docker login git.kemitix.net --username kemitix --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }} uses: docker/build-push-action@v6
with:
push: true
tags: git.ragarock.moe/${{ env.GITHUB_REPOSITORY }}:latest
- name: Publish # - name: Clear image from cache
run: docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest # run: |
# docker images git.ragarock.moe/${{ env.GITHUB_REPOSITORY }} -q | sort -u | xargs -r docker rmi --force
# docker system prune --force --all
# - name: Build
# run: docker build . -t git.ragarock.moe/${{ env.GITHUB_REPOSITORY }}:latest
# - name: Login
# run: docker login git.ragarock.moe --username silvana --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }}
# - name: Publish
# run: docker push git.ragarock.moe/${{ env.GITHUB_REPOSITORY }}:latest

View file

@ -6,8 +6,7 @@ jobs:
test: test:
runs-on: docker runs-on: docker
container: container:
image: image: git.ragarock.moe/silvana/rust:latest
git.kemitix.net/kemitix/rust:latest
strategy: strategy:
matrix: matrix:
toolchain: toolchain:

View file

@ -1,6 +1,6 @@
FROM docker.io/rust:1.84.0-alpine3.21 FROM docker.io/rust:1.84.0-alpine3.21
LABEL org.opencontainers.image.source=https://git.kemitix.net/kemitix/rust LABEL org.opencontainers.image.source=https://git.ragarock.moe/silvana/rust
RUN apk add --no-cache curl=8.11.1-r0 RUN apk add --no-cache curl=8.11.1-r0
RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.10.19/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \ RUN curl -L https://github.com/cargo-bins/cargo-binstall/releases/download/v1.10.19/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \
@ -48,8 +48,8 @@ RUN apk add --no-cache \
# dbus-dev \ # dbus-dev \
RUN git config --global user.email "action@git.kemitix.net" && \ RUN git config --global user.email "holo@ragarock.moe" && \
git config --global user.name "ForgeJo Action. See: https://git.kemitix.net/kemitix/rust" git config --global user.name "ForgeJo Action. See: https://git.ragarock.moe/silvana/rust"
COPY scripts/ /usr/local/bin/ COPY scripts/ /usr/local/bin/

View file

@ -1,4 +1,4 @@
image := "git.kemitix.net/kemitix/rust:test" image := "git.ragarock.moe/silvana/rust:test"
build: build:
docker build . -t {{ image }} docker build . -t {{ image }}