Skip to content

Commit

Permalink
Merge pull request #7 from score-spec/image-pipeline
Browse files Browse the repository at this point in the history
Add github action to build and push a docker image
  • Loading branch information
Nilsty authored Jan 24, 2024
2 parents d92540a + e1abdb2 commit 0f504fa
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish docker image

on:
push:
branches: ['main']

env:
REGISTRY: registry.humanitec.io/public
IMAGE_NAME: sample-score-app

jobs:
build-and-push-image:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build and push Docker image
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
tags: latest

0 comments on commit 0f504fa

Please sign in to comment.