Skip to content

Commit

Permalink
actions settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mimimix committed Jan 14, 2024
1 parent b08356d commit 462d23d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build test project

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
init:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
go-version: [ '1.21.6' ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ github.repository }}:base
# labels: ${{ steps.meta.outputs.labels }}
# - name: Setup Go ${{ matrix.go-version }}
# uses: actions/setup-go@v4
# with:
# go-version: ${{ matrix.go-version }}
# - name: Display Go version
# run: go version

0 comments on commit 462d23d

Please sign in to comment.