-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (39 loc) · 1.64 KB
/
build-and-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build and Deploy
run-name: Build and deploy docker images on dockerhub
on: [push, workflow_dispatch]
jobs:
build_base_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: Get debian-novnc Base Files
run: git clone https://github.com/B0nam/DEBIAN-DOCKER-NOVNC.git
- name: Build debian-novnc Base
run: docker build -t debian-novnc:base DEBIAN-DOCKER-NOVNC/Base/.
- name: Push debian-novnc Base
run: |
docker tag debian-novnc:base "${{ secrets.DOCKERHUB_USERNAME }}/debian-novnc:base"
docker push "${{ secrets.DOCKERHUB_USERNAME }}/debian-novnc:base"
build_doom_job:
needs: build_base_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-doom image
run: docker build -t debian-doom:latest Docker/.
- name: Push debian-doom image
run: |
docker tag debian-doom:latest "${{ secrets.DOCKERHUB_USERNAME }}/debian-doom:latest"
docker push "${{ secrets.DOCKERHUB_USERNAME }}/debian-doom:latest"