-
Notifications
You must be signed in to change notification settings - Fork 21
39 lines (37 loc) · 987 Bytes
/
devkit-go.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
name: Devkit (go)
on:
push:
branches:
- master
- main
paths:
- '.docker/go.dockerfile'
- '.github/workflows/devkit-go.yml'
pull_request:
paths:
- '.docker/go.dockerfile'
- '.github/workflows/devkit-go.yml'
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
strategy:
matrix:
lang: ["go"]
version: ["1.22.2"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Publish
uses: elgohr/Publish-Docker-Github-Action@main
with:
name: shish2k/rosettaboy-devkit-${{ matrix.lang }}
dockerfile: .docker/${{ matrix.lang }}.dockerfile
buildoptions: "--build-arg VERSION=${{ matrix.version }}"
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: ${{ matrix.version }}
platforms: linux/amd64,linux/arm64