diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index 897f0ad..299fd01 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index 89d451a..0000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: test - -on: - push: - branches: ["master"] - pull_request: - branches: ["master"] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version-file: 'go.mod' - - run: make - env: - GOBIN: "/tmp/bin"