This commit is contained in:
parent
faf90715b8
commit
82063269a8
1 changed files with 70 additions and 70 deletions
|
@ -1,78 +1,78 @@
|
||||||
# name: Build and Push to Forgejo Registry
|
name: Build and Push to Forgejo Registry
|
||||||
#
|
|
||||||
# on:
|
|
||||||
# push:
|
|
||||||
# branches: [main]
|
|
||||||
# # schedule:
|
|
||||||
# # - cron: "0 0 * * 0" # Weekly at 00:00 UTC Sunday
|
|
||||||
#
|
|
||||||
# jobs:
|
|
||||||
# build:
|
|
||||||
# runs-on: docker
|
|
||||||
# steps:
|
|
||||||
# -
|
|
||||||
# name: Checkout code
|
|
||||||
# uses: actions/checkout@v4
|
|
||||||
#
|
|
||||||
# - name: Login to Forgejo Container Registry
|
|
||||||
# run: |
|
|
||||||
# echo "${{ secrets.FORGEJO_PASSWORD }}" | docker login git.k4li.de \
|
|
||||||
# -u "${{ vars.FORGEJO_USERNAME }}" \
|
|
||||||
# --password-stdin
|
|
||||||
#
|
|
||||||
# - name: Running buildscript
|
|
||||||
# run: |
|
|
||||||
# ./build.sh || echo "Error building docker image via script!"
|
|
||||||
#
|
|
||||||
# # -
|
|
||||||
# # name: Checkout
|
|
||||||
# # uses: actions/checkout@v4
|
|
||||||
# # -
|
|
||||||
# # Add support for more platforms with QEMU (optional)
|
|
||||||
# # https://github.com/docker/setup-qemu-action
|
|
||||||
# # name: Set up QEMU
|
|
||||||
# # uses: docker/setup-qemu-action@v3
|
|
||||||
# # -
|
|
||||||
# # name: Set up Docker Buildx
|
|
||||||
# # uses: docker/setup-buildx-action@v3
|
|
||||||
# #
|
|
||||||
# # -
|
|
||||||
# # name: Build and push
|
|
||||||
# # uses: docker/build-push-action@v6
|
|
||||||
# # with:
|
|
||||||
# # push: true
|
|
||||||
# # tags: docker/caddy:latest
|
|
||||||
|
|
||||||
|
|
||||||
name: ci
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [main]
|
||||||
|
# schedule:
|
||||||
|
# - cron: "0 0 * * 0" # Weekly at 00:00 UTC Sunday
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
# container: catthehacker/ubuntu:act-latest ##THIS IS COMMENTED BECAUSE THIS IS DEFINED IN THE FORGEJO-RUNNER CMD GLOBALLY. BUT UNCOMMENTING DOESNT CHANGE ANYTHING.
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
- name: Login to Forgejo Container Registry
|
||||||
with:
|
run: |
|
||||||
platforms: 'amd64,arm64' ## CAN REMOVE with.platforms AND BUILD FOR ALL BUT DOESNT MATTER
|
echo "${{ secrets.FORGEJO_PASSWORD }}" | docker login git.k4li.de \
|
||||||
- name: Set up Docker Buildx
|
-u "${{ vars.FORGEJO_USERNAME }}" \
|
||||||
uses: docker/setup-buildx-action@v3
|
--password-stdin
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@v3
|
- name: Running buildscript
|
||||||
with:
|
run: |
|
||||||
registry: git.k4li.de
|
./build.sh || echo "Error building docker image via script!"
|
||||||
username: ${{ secrets.FORGEJO_USERNAME }}
|
|
||||||
password: ${{ secrets.FORGEJO_PASSWORD }}
|
# -
|
||||||
- name: Build and push
|
# name: Checkout
|
||||||
uses: docker/build-push-action@v5
|
# uses: actions/checkout@v4
|
||||||
with:
|
# -
|
||||||
#testing
|
# Add support for more platforms with QEMU (optional)
|
||||||
context: .
|
# https://github.com/docker/setup-qemu-action
|
||||||
file: ./Dockerfile
|
# name: Set up QEMU
|
||||||
platforms: linux/amd64,linux/arm64
|
# uses: docker/setup-qemu-action@v3
|
||||||
push: true
|
# -
|
||||||
tags: docker/caddy:latest
|
# name: Set up Docker Buildx
|
||||||
|
# uses: docker/setup-buildx-action@v3
|
||||||
|
#
|
||||||
|
# -
|
||||||
|
# name: Build and push
|
||||||
|
# uses: docker/build-push-action@v6
|
||||||
|
# with:
|
||||||
|
# push: true
|
||||||
|
# tags: docker/caddy:latest
|
||||||
|
|
||||||
|
|
||||||
|
# name: ci
|
||||||
|
# on:
|
||||||
|
# push:
|
||||||
|
#
|
||||||
|
# jobs:
|
||||||
|
# build:
|
||||||
|
# runs-on: docker
|
||||||
|
# # container: catthehacker/ubuntu:act-latest ##THIS IS COMMENTED BECAUSE THIS IS DEFINED IN THE FORGEJO-RUNNER CMD GLOBALLY. BUT UNCOMMENTING DOESNT CHANGE ANYTHING.
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout
|
||||||
|
# uses: actions/checkout@v4
|
||||||
|
# - name: Set up QEMU
|
||||||
|
# uses: docker/setup-qemu-action@v3
|
||||||
|
# with:
|
||||||
|
# platforms: 'amd64,arm64' ## CAN REMOVE with.platforms AND BUILD FOR ALL BUT DOESNT MATTER
|
||||||
|
# - name: Set up Docker Buildx
|
||||||
|
# uses: docker/setup-buildx-action@v3
|
||||||
|
# - name: Login to Docker Hub
|
||||||
|
# uses: docker/login-action@v3
|
||||||
|
# with:
|
||||||
|
# registry: git.k4li.de
|
||||||
|
# username: ${{ secrets.FORGEJO_USERNAME }}
|
||||||
|
# password: ${{ secrets.FORGEJO_PASSWORD }}
|
||||||
|
# - name: Build and push
|
||||||
|
# uses: docker/build-push-action@v5
|
||||||
|
# with:
|
||||||
|
# #testing
|
||||||
|
# context: .
|
||||||
|
# file: ./Dockerfile
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
# push: true
|
||||||
|
# tags: docker/caddy:latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue