Skip to content

feat: push images to Docker #11

feat: push images to Docker

feat: push images to Docker #11

Workflow file for this run

name: Build and Publish Images
on:
push:
branches: [ "main" ]
workflow_dispatch:
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
jobs:
debian-image-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: kbdharun
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push to Docker
uses: docker/build-push-action@v5
with:
context: .
file: ./configs/Debian-DockerFile
push: true
tags: kbdharun/kasm-dev-debian:1.14.0
fedora-image-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: kbdharun
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push to Docker
uses: docker/build-push-action@v5
with:
context: .
file: ./configs/Fedora-DockerFile
push: true
tags: kbdharun/kasm-dev-fedora:1.14.0
ubuntu-image-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: kbdharun
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push to Docker
uses: docker/build-push-action@v5
with:
context: .
file: ./configs/Ubuntu-DockerFile
push: true
tags: kbdharun/kasm-dev-ubuntu:1.14.0
build-debian-image-ghcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Debian-DockerFile -t ghcr.io/kbdharun/kasm-dev-debian:1.14.0 .
# Push the image to GHCR (Image Registry)
- name: Push To GHCR
run: |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
docker image push "ghcr.io/kbdharun/kasm-dev-debian:1.14.0"
build-fedora-image-ghcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Fedora-DockerFile -t ghcr.io/kbdharun/kasm-dev-fedora:1.14.0 .
# Push the image to GHCR (Image Registry)
- name: Push To GHCR
run: |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
docker image push "ghcr.io/kbdharun/kasm-dev-fedora:1.14.0"
build-ubuntu-image-ghcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker image build -f configs/Ubuntu-DockerFile -t ghcr.io/kbdharun/kasm-dev-ubuntu:1.14.0 .
# Push the image to GHCR (Image Registry)
- name: Push To GHCR
run: |
docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}
docker image push "ghcr.io/kbdharun/kasm-dev-ubuntu:1.14.0"