-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (30 loc) · 1002 Bytes
/
builder-image.yml
File metadata and controls
35 lines (30 loc) · 1002 Bytes
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
name: builder image workflow
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- ".github/workflows/builder-image.yml"
- "images/builder/Dockerfile"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- name: Login to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
with:
registry: ghcr.io
username: sovereigncloudstack
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7
with:
file: ./images/builder/Dockerfile
context: ./images/builder
push: true
tags: ghcr.io/sovereigncloudstack/csctl-builder:0.2.3