Skip to content

Add checks to age (#56) #9

Add checks to age (#56)

Add checks to age (#56) #9

name: Build and Push profile-service APIs image to GitLab Container Registry
on:
workflow_dispatch:
push:
branches:
- master # Adjust this to the branch you want to trigger the workflow on
paths:
# github workflow will only trigger at the exact path
# add "**" at the end of the path so that any changes to sub-directories will be triggered
- "services/profile-service/**"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to GitLab Container Registry
run: docker login registry.gitlab.com -u ${{ secrets.GITLAB_USERNAME }} -p ${{ secrets.DOCKER}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: services/profile-service
file: ./services/profile-service/Dockerfile
push: true
tags: registry.gitlab.com/peerprepgroup51sem1y2023/docker/profile-service:latest