-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.44 KB
/
test-workflow.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
51
52
53
54
55
56
57
58
59
name: _Test Workflow
on:
workflow_dispatch:
jobs:
build-image-factory-runner:
runs-on: ubuntu-latest
env:
IMAGE_NAME: "image-factory-runner"
IMAGE_TAG: "latest"
IMAGE_FOLDER: "images/docker/image-factory-runner"
REGISTRY: "stovernic"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# - name: Log in to Azure Container Registry
# uses: azure/docker-login@v1
# with:
# login-server: ${{ secrets.REGISTRY }}
# username: ${{ secrets.ACR_USERNAME }}
# password: ${{ secrets.ACR_PASSWORD }}
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build Docker Image
run: docker build -t $REGISTRY/$IMAGE_NAME:$IMAGE_TAG $IMAGE_FOLDER
- name: Push Docker image
run: |
docker push $REGISTRY/$IMAGE_NAME:$IMAGE_TAG
# on:
# workflow_dispatch:
# inputs:
# runsOn:
# description: 'Runs-On: Runner'
# required: true
# default: 'self-hosted'
# type: string
# command:
# description: 'run: Command'
# required: true
# default: 'echo "test"'
# type: string
# jobs:
# build:
# runs-on: ${{ inputs.runsOn }}
# steps:
# - name: Run Command
# run: ${{ inputs.command }}