Skip to content

Commit

Permalink
Merge pull request #18 from lsst-uk/build_container_action
Browse files Browse the repository at this point in the history
Build container action
  • Loading branch information
davedavemckay authored Jun 24, 2024
2 parents 957c656 + 7cf17ce commit 6505f09
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file echo-side/containers/basic_env/Dockerfile --tag ghcr.io/lsst-uk/csd3-echo-somerville:$(date +%Y%m%d) --tag ghcr.io/lsst-uk/csd3-echo-somerville:latest
- name: Push the Docker image
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u lsst-uk --password-stdin && docker push ghcr.io/lsst-uk/csd3-echo-somerville:$(date +%Y%m%d) && docker push ghcr.io/lsst-uk/csd3-echo-somerville:latest

0 comments on commit 6505f09

Please sign in to comment.