Skip to content

Commit

Permalink
test docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
ailrst committed Aug 7, 2023
1 parent b1ad667 commit 9d7de80
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@




name: publish
on:
push:
paths:
- docker/**
- compose.yml
jobs:
build:
publish-docker-image:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 11
run: apt-get install podman podman-compose
- name: Compile image
- run: actions/checkout@v3
- run: podman-compose build
- run: podman image save localhost/basil:mini -o basil-container
- uses: actions/checkout@v3
- name: Checkout code
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and publish container
run: |
docker build -f docker/asli.Dockerfile -t ghcr.io/UQ-PAC/basil-dev:latest
docker push ghcr.io/UQ-PAC/basil-dev:latest

0 comments on commit 9d7de80

Please sign in to comment.