Gitea Actions - git.mills.io

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

    steps:
      - name: Checkout Code
        uses: actions/checkout@v3
    steps:
      - name: Setup Go
        uses: actions/setup-go@v4
        with:
          go-version: '>=1.18.0'
    steps:
      - name: Setup Docker Buildx
        uses: actions/setup-buildx@v2
    steps:
      - name: Login to Registry
        uses: actions/docker-login@v2
        with:
          registry: ${{ env.REGISTRY }}
          username: ${{ secrets.REGISTRY_USER }}
          password: ${{ secrets.REGISTRY_PASS }}
    steps:
      - name: Build and Push Image
        uses: actions/docker-build-push@v4
        with:
          context: .
          push: true
          tags: ${{ env.REGISTRY}}/${{ env.IMAGE }}:${{ env.TAG }}
    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 }}
    steps:
      - name: Setup Terraform
        uses: actions/setup-terraform@v2
    steps:
      - name: Setup zs
        uses: actions/setup-zs@v1
    steps:
      - name: Comment on PR
        uses: actions/pr-comment@main
        with:
          token: ${{ secrets.RW_GITEA_TOKEN }}
          comment: "Hello World!"
    steps:
      - uses: actions/setup-ssh@main
        with:
          ssh_cert: ${{ secrets.SSH_CERT }}
          ssh_key: ${{ secrets.SSH_KEY }}
    steps:
      - uses: actions/gitea-pages@main
        with:
          path: .pub

Untested

    steps:
      uses: actions/cache@v3
      with:
        path: prime-numbers
        key: ${{ runner.os }}-primes

Testing

    steps:
      - name: Setup Java
        uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: '11'
          cache: 'gradle'

✍️ Edit this page on Gitea.