-
-
Notifications
You must be signed in to change notification settings - Fork 84
38 lines (29 loc) · 1.07 KB
/
test-with-docker.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
name: Docker Image CI
on:
push:
branches: [master]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }}
- name: Build Docker image
run: docker build -t simeononsecurity/windows-optimize-harden-debloat:latest .
- name: Tag Docker image
run: docker tag simeononsecurity/windows-optimize-harden-debloat:latest ghcr.io/simeononsecurity/windows-optimize-harden-debloat:latest
- name: Push Docker image
run: |
docker push simeononsecurity/windows-optimize-harden-debloat:latest
docker push ghcr.io/simeononsecurity/windows-optimize-harden-debloat:latest