Skip to content

Commit

Permalink
[devkit] go devkit
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Apr 8, 2024
1 parent 0438be3 commit f4de5f1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/devkit-go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit f4de5f1

Please sign in to comment.