-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (44 loc) · 1.48 KB
/
devtools-image-build.yml
File metadata and controls
54 lines (44 loc) · 1.48 KB
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
#
# Copyright (c) 2020-2024 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
name: Devtools container build
on:
push:
branches: [ main ]
env:
PUSH_REGISTRY: quay.io
jobs:
build-devtools-img:
runs-on: ubuntu-24.04
outputs:
git-sha: ${{ steps.git-sha.outputs.sha }}
steps:
- name: Checkout webterminal-operator source code
uses: actions/checkout@v4
- name: Set output for Git short SHA
id: git-sha
run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Login to quay.io
uses: docker/login-action@v3
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
registry: ${{ env.PUSH_REGISTRY }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push webterminal-operator-devtools image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ env.PUSH_REGISTRY }}/wto/web-terminal-operator-devtools:latest
${{ env.PUSH_REGISTRY }}/wto/web-terminal-operator-devtools:sha-${{ steps.git-sha.outputs.sha }}
file: ./build/dockerfiles/devtools.Dockerfile