Compare commits
No commits in common. "a4c689ea8892aaa49234ea642e0c940e779addc7" and "97ecd0e52d626dd45444e06921f7f981c5a6cb2c" have entirely different histories.
a4c689ea88
...
97ecd0e52d
2 changed files with 0 additions and 50 deletions
|
|
@ -1,26 +0,0 @@
|
||||||
name: package
|
|
||||||
on:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
docker:
|
|
||||||
name: docker
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Login to Docker Registry
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
registry: git.itzyanick.de
|
|
||||||
username: ItzYanick
|
|
||||||
password: ${{ secrets.PACKAGE_TOKEN }}
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v4
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: git.itzyanick.de/ItzYanick/runner-docker:latest
|
|
||||||
build-args: |
|
|
||||||
CHECKOUT=${{ github.ref }}
|
|
||||||
24
Dockerfile
24
Dockerfile
|
|
@ -1,24 +0,0 @@
|
||||||
ARG CHECKOUT=main
|
|
||||||
|
|
||||||
# Go container
|
|
||||||
FROM golang:1.20.2-alpine3.17 AS GO_BUILD
|
|
||||||
ARG CHECKOUT
|
|
||||||
|
|
||||||
RUN apk fix && \
|
|
||||||
apk --no-cache --update add git make
|
|
||||||
|
|
||||||
RUN mkdir /build
|
|
||||||
RUN git clone https://git.itzyanick.de/ItzYanick/runner-docker.git /build/runner \
|
|
||||||
&& cd /build/runner \
|
|
||||||
&& git checkout $CHECKOUT
|
|
||||||
|
|
||||||
WORKDIR /build/runner
|
|
||||||
|
|
||||||
RUN make build
|
|
||||||
|
|
||||||
# --
|
|
||||||
# Final Container
|
|
||||||
FROM alpine:3.17
|
|
||||||
COPY --from=GO_BUILD /build/runner/forgejo-runner ./
|
|
||||||
|
|
||||||
CMD ["./forgejo-runner"]
|
|
||||||
Loading…
Reference in a new issue