2023-05-03 05:48:56 +00:00
|
|
|
Actions name: Publish
|
2023-03-27 20:35:12 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-04-14 19:23:53 +00:00
|
|
|
- "master"
|
2023-03-27 20:35:12 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-03-30 20:52:55 +00:00
|
|
|
arch: ["ubuntu-latest"]
|
|
|
|
git-version: ["2.38.4"]
|
2023-05-03 05:48:56 +00:00
|
|
|
max-parallel: 3
|
|
|
|
fail-fast: true
|
2023-03-27 20:35:12 +00:00
|
|
|
runs-on: ${{ matrix.arch }}
|
|
|
|
steps:
|
2023-05-03 05:48:56 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: https://github.com/actions/checkout@v3
|
2023-03-27 20:35:12 +00:00
|
|
|
|
2023-05-03 05:48:56 +00:00
|
|
|
- name: Download Docker
|
2023-03-27 20:35:12 +00:00
|
|
|
run: |
|
|
|
|
wget -q -O /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-20.10.23.tgz \
|
|
|
|
&& tar --extract --file /tmp/docker.tgz --directory /usr/bin --strip-components 1 --no-same-owner docker/docker \
|
2023-05-03 05:52:20 +00:00
|
|
|
&& rm -rf /tmp/*
|
2023-03-27 20:35:12 +00:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2023-05-03 05:48:56 +00:00
|
|
|
uses: https://github.com/docker/setup-buildx-action@v2
|
2023-03-27 20:35:12 +00:00
|
|
|
|
|
|
|
- name: Login to Repo
|
2023-05-03 05:48:56 +00:00
|
|
|
uses: https://github.com/docker/login-action@v2
|
2023-03-27 20:35:12 +00:00
|
|
|
with:
|
2023-05-03 05:52:20 +00:00
|
|
|
registry: git.fascinated.cc
|
2023-03-27 20:35:12 +00:00
|
|
|
username: ${{ secrets.REPO_USERNAME }}
|
|
|
|
password: ${{ secrets.REPO_TOKEN }}
|
|
|
|
|
2023-05-03 05:48:56 +00:00
|
|
|
- name: Build and Push (Docker)
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
context: ./gitea-runner
|
|
|
|
file: ./gitea-runner/DockerDockerfile
|
2023-05-03 05:55:30 +00:00
|
|
|
tags: git.fascinated.cc/fascinated/gitea-runner:docker
|
2023-05-03 05:48:56 +00:00
|
|
|
|
|
|
|
- name: Build and Push (Node 18.x)
|
2023-03-27 20:35:12 +00:00
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
push: true
|
2023-03-27 21:43:13 +00:00
|
|
|
context: ./gitea-runner
|
2023-03-27 21:44:48 +00:00
|
|
|
file: ./gitea-runner/Node18xDockerfile
|
2023-05-03 05:55:30 +00:00
|
|
|
tags: git.fascinated.cc/fascinated/gitea-runner:node-18
|
2023-05-03 05:48:56 +00:00
|
|
|
|
|
|
|
- name: Build and Push (Java 17)
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
context: ./gitea-runner
|
|
|
|
file: ./gitea-runner/Java17Dockerfile
|
2023-05-03 05:55:30 +00:00
|
|
|
tags: git.fascinated.cc/fascinated/gitea-runner:java-17
|
2023-05-03 05:48:56 +00:00
|
|
|
|
|
|
|
- name: Build and Push (Java 18)
|
|
|
|
uses: docker/build-push-action@v4
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
context: ./gitea-runner
|
|
|
|
file: ./gitea-runner/Java18Dockerfile
|
2023-05-03 05:55:30 +00:00
|
|
|
tags: git.fascinated.cc/fascinated/gitea-runner:java-18
|