24 lines
No EOL
703 B
YAML
24 lines
No EOL
703 B
YAML
# Create a Docker container from this project and post it to Forgejo (a fork of Gitea) from this Forgejo runner.
|
|
|
|
name: container
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build the Docker image
|
|
run: docker build -t git.smgames.club/${{ env.GITHUB_REPOSITORY_OWNER }}/felidae-site:latest .
|
|
|
|
- name: Log in to the Forgejo Container Registry
|
|
run: echo "${{ secrets.FORGEJO_TOKEN }}" | docker login -u "${{ secrets.FORGEJO_USERNAME }}" --password-stdin git.smgames.club
|
|
|
|
- name: Push the Docker image
|
|
run: docker push git.smgames.club/${{ env.GITHUB_REPOSITORY_OWNER }}/felidae-site:latest |