Skip to content

Commit

Permalink
auto build docker on master
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke committed Oct 22, 2024
1 parent 7723c4b commit c2f9286
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 35 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
name: build-docker

on:
release:
types: [published]
branch:
- master
- main

jobs:
build:
permission:
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- uses: actions/checkout@v4
- name: Login to quay.io Docker Image Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: quay.io
username: "${{ secrets.QUAY_USER }}"
password: "${{ secrets.QUAY_PASS }}"
- run: make docker docker-publish
env:
DOCKER_IMAGE_TAG: ${{ github.event.release.tag_name }}
- run: make docker docker-publish
env:
DOCKER_IMAGE_TAG: latest
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: make docker-build
19 changes: 0 additions & 19 deletions .github/workflows/test.yaml

This file was deleted.

0 comments on commit c2f9286

Please sign in to comment.