Skip to content

login action v3 wo push #19

login action v3 wo push

login action v3 wo push #19

Workflow file for this run

name: Docker Build & Publish
on:
push:
branches:
- '*test*'
tags:
- '*'
env:
REGISTRY: opswat
REPO_NAME: ${{ github.event.repository.name }}
jobs:
dockerbuild:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: false
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.ref_name }}
build-args: version=${{ github.ref_name }}