You've already forked wakapi-readme-stats
Some checks failed
Build and Publish Docker Image / build (push) Failing after 9m56s
34 lines
856 B
YAML
34 lines
856 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 the container registry 🚪
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ${{ vars.DOCKER_REGISTRY }}
|
|
username: ${{ vars.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
|
- name: Build the Docker image
|
|
run: |
|
|
docker build . -t ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
|
|
|
|
- name: Push the Docker image
|
|
run: |
|
|
docker push ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
|