You've already forked wakapi-readme-stats
30 lines
740 B
YAML
30 lines
740 B
YAML
name: Build and Publish Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Log in to Docker registry
|
|
run: |
|
|
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login git.fran.jp.net -u xyvs --password-stdin
|
|
|
|
- name: Build the Docker image
|
|
run: |
|
|
docker build . -t git.fran.jp.net/xyvs/wakapi-readme-stats:${{ github.ref_name }}
|
|
|
|
- name: Push the Docker image
|
|
run: |
|
|
docker push git.fran.jp.net/xyvs/wakapi-readme-stats:${{ github.ref_name }}
|