Skip to content

Merge pull request #47 from backdevs/dependabot/go_modules/github.com… #12

Merge pull request #47 from backdevs/dependabot/go_modules/github.com…

Merge pull request #47 from backdevs/dependabot/go_modules/github.com… #12

name: Docker Image CI
on:
push:
tags: [ '*.*.*' ]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get tag
id: get-tag
uses: ./.github/actions/get-tag
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ github.repository }}:${{ steps.get-tag.outputs.tag }}, ${{ github.repository }}:latest