scouter/.github/workflows/build-and-push.yml

34 lines
739 B
YAML
Raw Permalink Normal View History

2024-02-15 16:20:17 -05:00
name: Build and Push to git.beans.team
2024-02-15 16:45:42 -05:00
2024-02-15 16:20:17 -05:00
on:
push:
branches:
- main
tags:
- '*'
2024-02-15 16:45:42 -05:00
jobs:
update-registry:
name: Update Registry Image
runs-on: ubuntu-latest
2024-02-15 16:20:17 -05:00
steps:
2024-02-15 16:45:42 -05:00
- name: Checkout
uses: actions/checkout@v4
2024-02-15 16:20:17 -05:00
2024-02-15 16:45:42 -05:00
- name: Login to git.beans.team
uses: docker/login-action@v3
2024-02-15 16:20:17 -05:00
with:
2024-02-15 16:45:42 -05:00
registry: git.beans.team
2024-02-15 16:20:17 -05:00
username: em
password: ${{ secrets.REGISTRY_PASSWORD }}
2024-02-15 16:45:42 -05:00
- name: Build and Push Image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
git.beans.team/em/scouter:latest
git.beans.team/em/scouter:${{ github.sha }}