Skip to content

Commit d5de462

Browse files
chore: Added workflow to automate docker build (#8)
1 parent e22f9f9 commit d5de462

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build-container
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-image:
10+
runs-on: ubuntu-latest
11+
environment: container-build
12+
13+
steps:
14+
- name: Check out devolutions/dvls-kubernetes-operator
15+
uses: actions/checkout@v4
16+
17+
- name: Login to DockerHub
18+
uses: docker/login-action@v3
19+
with:
20+
username: devolutionsbot
21+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
22+
23+
- name: Build and push
24+
id: docker_build
25+
uses: docker/build-push-action@v5
26+
with:
27+
context: .
28+
push: true
29+
tags: devolutions/dvls-kubernetes-operator:latest
30+
31+
- name: Image digest
32+
run: echo ${{ steps.docker_build.outputs.digest }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.19 as builder
2+
FROM golang:1.21 as builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

0 commit comments

Comments
 (0)