Skip to content

Commit

Permalink
Added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
B0nam committed Apr 7, 2024
1 parent 8fdb10a commit 26cf30f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/buld-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Deploy
run-name: Build and deploy docker images on dockerhub

on: [push, workflow_dispatch]
jobs:
build_job:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Autenticate with Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build debian-novnc Xfce4
run: docker build -t debian-novnc:xfce4 Xfce4/.

- name: Push debian-novnc Xfce4
run: |
docker tag debian-novnc:xfce4 "${{ secrets.DOCKERHUB_USERNAME }}/debian-novnc:xfce4"
docker push "${{ secrets.DOCKERHUB_USERNAME }}/debian-novnc:xfce4"
- name: Build debian-novnc Fluxbox
run: docker build -t debian-novnc:fluxbox Fluxbox/.

- name: Push debian-novnc Fluxbox
run: |
docker tag debian-novnc:fluxbox "${{ secrets.DOCKERHUB_USERNAME }}/debian-novnc:fluxbox"
docker push "${{ secrets.DOCKERHUB_USERNAME }}/debian-novnc:fluxbox"

0 comments on commit 26cf30f

Please sign in to comment.