Skip to content

Dev-to-docker

Dev-to-docker #52

Workflow file for this run

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: Build and Push Docker Image to Github
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.TAGS }}
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}