mirror of
https://github.com/s83/docker-brudi-rclone.git
synced 2024-11-30 16:45:30 +00:00
update pipeline
This commit is contained in:
parent
5276773f99
commit
d63d4742de
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -34,10 +34,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
14
Dockerfile
14
Dockerfile
@ -1,3 +1,16 @@
|
|||||||
|
# Add build-base package for compiling source code
|
||||||
|
RUN apk add --no-cache --upgrade build-base
|
||||||
|
|
||||||
|
# Clone the brudi source code from GitHub
|
||||||
|
RUN git clone https://github.com/mittwald/brudi.git /tmp/brudi
|
||||||
|
|
||||||
|
# Build brudi from source for arm architecture
|
||||||
|
WORKDIR /tmp/brudi
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -o /usr/local/bin/brudi
|
||||||
|
|
||||||
|
# Clean up the temporary directory
|
||||||
|
RUN rm -rf /tmp/brudi
|
||||||
|
|
||||||
FROM postgres:16.2-alpine3.19
|
FROM postgres:16.2-alpine3.19
|
||||||
|
|
||||||
LABEL maintainer="s83 <https://github.com/s83>"
|
LABEL maintainer="s83 <https://github.com/s83>"
|
||||||
@ -31,3 +44,4 @@ USER ${BRUDI_USER}
|
|||||||
WORKDIR /home/${BRUDI_USER}
|
WORKDIR /home/${BRUDI_USER}
|
||||||
|
|
||||||
ENTRYPOINT ["brudi"]
|
ENTRYPOINT ["brudi"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user