42 lines
No EOL
1 KiB
YAML
42 lines
No EOL
1 KiB
YAML
name: Dev-to-docker
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
IMAGE_NAME: watchyourlan
|
|
TAGS: dev
|
|
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and Push Docker Image to docker.io
|
|
uses: mr-smithers-excellent/docker-build-push@v6
|
|
with:
|
|
image: ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}
|
|
tags: ${{ env.TAGS }}
|
|
registry: docker.io
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
# - name: Login to GHCR
|
|
# uses: docker/login-action@v3
|
|
# with:
|
|
# registry: ghcr.io
|
|
# username: ${{ github.actor }}
|
|
# password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# - name: Build and push
|
|
# uses: docker/build-push-action@v6
|
|
# with:
|
|
# context: .
|
|
# platforms: linux/amd64
|
|
# push: true
|
|
# tags: |
|
|
# ghcr.io/${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.TAGS }} |