Skip to content

Commit

Permalink
disable docker_tag ci and add latest tag (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Nov 4, 2024
1 parent fe192e9 commit 6afc003
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/docker-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker tags
on:
push:
tags:
- '*.*.*'
- 'y*.*.*'
workflow_dispatch:

jobs:
Expand All @@ -15,16 +15,16 @@ jobs:
with:
fetch-depth: 0

- name: dockerhub-login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB }}
password: ${{ secrets.DOCKERHUB_KEY }}
# - name: dockerhub-login
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB }}
# password: ${{ secrets.DOCKERHUB_KEY }}
- name: ghcr-login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/setup-qemu-action@v3
Expand All @@ -35,5 +35,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${GITHUB_REF#refs/tags/}
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
# DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
# DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ jobs:
--build-arg VERSION=${{ env.BUILD_VERSION }} \
--build-arg APPLICATION=${{ env.APPLICATION }} \
--tag ${{ env.DOCKER_URL }}:${{ env.BUILD_VERSION }} \
--tag ${{ env.DOCKER_URL }}:latest \
--target release \
--attest type=provenance,mode=max \
--sbom=true \
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ release-dry-run: git-submodules
--privileged \
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN \
-e DOCKER_USERNAME \
-e DOCKER_PASSWORD \
# -e DOCKER_USERNAME \
# -e DOCKER_PASSWORD \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
Expand Down

0 comments on commit 6afc003

Please sign in to comment.