mirror of
https://github.com/pcvolkmer/idicon.git
synced 2025-04-19 08:36:50 +00:00
34 lines
737 B
YAML
34 lines
737 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master", "main" ]
|
|
pull_request:
|
|
branches: [ "master", "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.22'
|
|
|
|
- run: go test
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to ghcr.io
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Execute image build and push
|
|
run: |
|
|
docker build -t ghcr.io/pcvolkmer/idicon .
|
|
docker push ghcr.io/pcvolkmer/idicon |