-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dee8f38
commit 8a3632c
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
INTERPRETER_IMAGE: silvanmelchior/interpreter-venv | ||
OUTPUT_IMAGE: silvanmelchior/incognito-pilot | ||
PLATFORMS: linux/amd64,linux/arm64/v8 | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
dependencies: | ||
- suffix: "" | ||
interpreter: 1.0.0 | ||
- suffix: "-slim" | ||
interpreter: 1.0.0-slim | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Get version | ||
run: | | ||
VER=$(cat VERSION) | ||
echo "VERSION=$VER" >> $GITHUB_ENV | ||
- name: Get release type | ||
run: | | ||
VER=$(cat VERSION) | ||
if [[ $VER == *"b"* ]]; then | ||
echo "RELEASE_TYPE=nightly" >> $GITHUB_ENV | ||
else | ||
echo "RELEASE_TYPE=latest" >> $GITHUB_ENV | ||
fi | ||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
platforms: ${{ env.PLATFORMS }} | ||
file: docker/Dockerfile | ||
build-args: INTERPRETER_IMAGE=${{ env.INTERPRETER_IMAGE }}:${{ matrix.dependencies.interpreter }} | ||
push: true | ||
tags: | | ||
${{ env.OUTPUT_IMAGE }}:${{ env.VERSION }}${{ matrix.dependencies.suffix }}, | ||
${{ env.OUTPUT_IMAGE }}:${{ env.RELEASE_TYPE }}${{ matrix.dependencies.suffix }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ RUN cd ui && \ | |
|
||
COPY VERSION VERSION | ||
COPY docker/start* . | ||
RUN chmod 755 start* | ||
CMD ["/opt/app/start.sh"] |