The Mills DC git.mills.io Gitea service has its own opinionated set of built-in actions that can be used. The following list of actions are available for workflows:
Validated and Working
- actions/checkout@v3 – Check out source code
steps:
- name: Checkout Code
uses: actions/checkout@v3
- actions/setup-go@v4 – Setup a Go compiler
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '>=1.18.0'
- actions/setup-buildx@v2 – Setup a Docker buildx builder
steps:
- name: Setup Docker Buildx
uses: actions/setup-buildx@v2
- actions/docker-login@v2 – Login to a Docker registry
steps:
- name: Login to Registry
uses: actions/docker-login@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASS }}
- actions/docker-build-push@v4 – Build and Push a Docker image
steps:
- name: Build and Push Image
uses: actions/docker-build-push@v4
with:
context: .
push: true
tags: ${{ env.REGISTRY}}/${{ env.IMAGE }}:${{ env.TAG }}
- actions/docker-context@v3 – Create a Docker SSH or TLS context
steps:
- name: Setup Context
uses: actions/docker-context@v3
with:
use_context: true
context_name: cas
docker_host: ssh://root@${{ env.HOST }}
ssh_key: ${{ secrets.SSH_KEY }}
ssh_cert: ${{ secrets.SSH_CERT }}
- actions/setup-terraform@v2 – Setup the Terraform tool
steps:
- name: Setup Terraform
uses: actions/setup-terraform@v2
- actions/setup-zs@v1 – Setup the zs static site generator tool
steps:
- name: Setup zs
uses: actions/setup-zs@v1
- actions/pr-comment@mail – Comment on a Pull Request taht triggered the workflow.
steps:
- name: Comment on PR
uses: actions/pr-comment@main
with:
token: ${{ secrets.RW_GITEA_TOKEN }}
comment: "Hello World!"
- actions/setup-ssh@main – Sets up an SSH agent and SSH key
steps:
- uses: actions/setup-ssh@main
with:
ssh_cert: ${{ secrets.SSH_CERT }}
ssh_key: ${{ secrets.SSH_KEY }}
- actions/gitea-pages@main – Automatically publish static web content to Gitea Pages Server
steps:
- uses: actions/gitea-pages@main
with:
path: .pub
Untested
- [actions/cache@v3][cache] – Cache artifacts locallyon the Runner(s) for reuse between jobs
steps:
uses: actions/cache@v3
with:
path: prime-numbers
key: ${{ runner.os }}-primes
Testing
- actions/setup-java@v3 – Sets up the Java SDK
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
cache: 'gradle'