Skip to content

Test commit for the github actions workflows #2

Test commit for the github actions workflows

Test commit for the github actions workflows #2

name: auth-service-build-push
on:
push:
paths:
- 'auth-service/**'
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Dockerhub
id: docker-hub
env:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_PASSWORD}}
run: |
docker login -u $username -p $password
- name: Docker Build and Publish
uses: docker/build-push-action@v2
with:
context: .
file: ./auth-service/Dockerfile
push: true
tags: frnn4268/auth-service:${{github.run_number}}