build docker image using predefined action
This commit is contained in:
parent
aa296ee57a
commit
a4ca52b617
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
build_website:
|
build_website:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: git.hswro.org/fleg/hswro_org:latest
|
image: git.hswro.org/fleg/hswro_org_build:latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -18,9 +18,24 @@ jobs:
|
||||||
build_and_push_container:
|
build_and_push_container:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: git.hswro.org/fleg/hswro_org:latest
|
image: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
- run: find
|
registry: git.hswro.org
|
||||||
- run: podman version
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: {context}/docker/serve.Dockerfile
|
||||||
|
tags: fleg/hswro_org:latest
|
||||||
|
push: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue