Skip to content

Commit

Permalink
Add build action
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyfothergill committed Apr 25, 2024
1 parent 3f2bdfa commit 7f288bc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on:
push:
branches: [ main ]
# Run when container or environment is changed
paths:
- 'jukes-micromamba/Dockerfile'
# Allows workflow to be manually triggered
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: 'Checkout'
uses: actions/checkout@main

- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: 'Build Inventory Image'
run: |
docker build . --tag ghcr.io/bsurc/jukes-micromamba:latest
docker push ghcr.io/bsurc/jukes-micromamba:latest

0 comments on commit 7f288bc

Please sign in to comment.