-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.06 KB
/
build-image.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
name: Build image
on:
push:
branches: [main]
tags: ['*']
permissions:
contents: write
packages: write
jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Log into registry ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Skaffold Github Action
uses: hiberbee/[email protected]
with:
skaffold-version: 2.11.1
# not working to upgrade in the action...
# container-structure-test-version: 1.16.1
# kubectl-version: 1.29.4
command: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run:
git status