chore(deps): bump github.com/docker/docker #213
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
SHOULD_PUSH: ${{ github.repository_owner == '0xERR0R' && github.ref == 'refs/heads/master' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Build | |
run: make build | |
- name: Set up Docker Buildx | |
if: env.SHOULD_PUSH == 'true' | |
uses: docker/setup-buildx-action@v3 | |
with: | |
version: latest | |
- name: Get next version | |
id: version | |
if: env.SHOULD_PUSH == 'true' | |
uses: reecetech/version-increment@2024.9.2 | |
with: | |
scheme: semver | |
increment: patch | |
- name: Set Version | |
if: env.SHOULD_PUSH == 'true' | |
run: | | |
git tag ${{ steps.version.outputs.v-version }} | |
git push origin ${{ steps.version.outputs.v-version }} | |
- name: Login to DockerHub | |
if: env.SHOULD_PUSH == 'true' | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Build the Docker image and push | |
if: env.SHOULD_PUSH == 'true' | |
run: make docker-buildx-push DOCKER_TAG=${{ steps.version.outputs.version }} |