Files
wakapi-readme-stats/.github/workflows/build_image.yml
Fran 03e1d2c318
Some checks failed
Build and Publish Docker Image / build (push) Failing after 9m56s
fix: Another image rebuild
2024-11-05 18:44:07 -05:00

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 }}