Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v22 Release #179

Merged
merged 44 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d453c17
Adapt Dockerfile to be multi-arch (amd64/arm64)
rekonnected Oct 30, 2022
e176ab2
Add arm64 to arch matrix in build.yml
rekonnected Oct 30, 2022
395f724
Merge pull request #140 from rekonnected/master
MitchTalmadge Jul 6, 2023
4cc19f9
Don't matrix architectures
MitchTalmadge Jul 6, 2023
aabcdab
Fix leftover matrix item
MitchTalmadge Jul 6, 2023
8be9772
Load only one image
MitchTalmadge Jul 6, 2023
d5d9b26
Upgrade buildx step
MitchTalmadge Jul 6, 2023
2204308
Use OCI
MitchTalmadge Jul 6, 2023
5f6b1af
add name to artifact download
rekonnected Jul 6, 2023
47687fb
Merge pull request #163 from rekonnected/patch-1
MitchTalmadge Jul 6, 2023
0322c19
Attempt to create manifest
MitchTalmadge Jul 7, 2023
9e4cafa
Add empty dockerfile for quick build testing
MitchTalmadge Jul 7, 2023
7064c58
Remove invalid platform tag
MitchTalmadge Jul 7, 2023
e111afd
Push images before making manifest
MitchTalmadge Jul 7, 2023
3e3dd15
Add missing branch name var
MitchTalmadge Jul 7, 2023
eae551c
Emit to output
MitchTalmadge Jul 7, 2023
00014c8
Restore main dockerfile build
MitchTalmadge Jul 7, 2023
dcb6eaa
Stop double build
MitchTalmadge Jul 7, 2023
8d62094
Remove Java notice
MitchTalmadge Jul 16, 2023
d34b6ed
Upgrade to Decadeus build process
MitchTalmadge Jul 17, 2023
3f1a391
Remove old action
MitchTalmadge Jul 17, 2023
790b0bd
Prod deploy only on master
MitchTalmadge Jul 17, 2023
dae9cca
Wait for build to complete
MitchTalmadge Jul 17, 2023
3fdd3f2
Fix missing version reference
MitchTalmadge Jul 17, 2023
6ab0fc0
Re-organize entrypoint. Improve release stream changeover.
MitchTalmadge Jul 17, 2023
3233bd3
Update build action deps
MitchTalmadge Jul 17, 2023
99c248f
Use branch local build action in staging
MitchTalmadge Jul 17, 2023
102a90f
Local ref build action
MitchTalmadge Jul 17, 2023
e38b3fe
Multiple Updates
IceOfWraith Jul 19, 2023
a9f16e9
Merge pull request #165 from MitchTalmadge/staging-decadeus
MitchTalmadge Jul 19, 2023
60fd4ca
Merge pull request #168 from IceOfWraith/staging-decadeus
MitchTalmadge Jul 19, 2023
be790bb
Trigger rebuild
MitchTalmadge Sep 3, 2023
6f44a6e
Fix adduser
MitchTalmadge Oct 30, 2023
781f419
Add documentation for example configs
MitchTalmadge Oct 30, 2023
5857976
Monitor AMP and run scheduled tasks
MitchTalmadge Oct 30, 2023
c6b36f1
Fix unreliable shutdown behavior
MitchTalmadge Oct 30, 2023
7faecdb
Install JDK 8,11,17,21 via AWS Corretto
MitchTalmadge Oct 30, 2023
c46b8a6
Sort dependencies
MitchTalmadge Oct 31, 2023
4ba22a0
Revert back to Adoptium for better AMP support. Fix Adoptium install
MitchTalmadge Oct 31, 2023
a98d235
Add python3-venv
IceOfWraith Nov 2, 2023
82e5c7f
Tentative Space Engineers support
IceOfWraith Nov 2, 2023
a747249
Merge pull request #173 from IceOfWraith/patch-1
MitchTalmadge Nov 2, 2023
c62893b
Merge pull request #178 from MitchTalmadge/staging-debian-12
MitchTalmadge Nov 10, 2023
d3c25a0
Merge branch 'master' into staging
MitchTalmadge Nov 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/auto-deploy-staging.yml

This file was deleted.

22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,39 @@ on:
required: true
type: boolean
workflow_dispatch:
push:
paths:
- Dockerfile
- .dockerignore
- entrypoint/**
- .github/workflows/build.yml
pull_request:
paths:
- Dockerfile
- .dockerignore
- entrypoint/**
- .github/workflows/build.yml
- .github/workflows/**.yml

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
matrix:
arch: [amd64]
arch: [amd64,arm64]
steps:
- name: "Checkout Git Repo"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Set up QEMU"
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: "Build Docker Image"
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
build-args: |
"CACHE_AMP_UPGRADE=${{ inputs.for_deploy == true }}"
context: .
platforms: linux/${{ matrix.arch }}
tags: amp-dockerized:latest
outputs: type=docker,dest=/tmp/docker-image-${{ matrix.arch }}.tar
- name: "Upload Docker Image Artifact"
if: ${{ inputs.for_deploy == true }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: image-${{ matrix.arch }}
path: /tmp/docker-image-${{ matrix.arch }}.tar
87 changes: 0 additions & 87 deletions .github/workflows/check-for-updates.yml

This file was deleted.

68 changes: 30 additions & 38 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,54 @@
name: "Deploy Production"

on:
workflow_call:
inputs:
git_release_version:
required: true
type: string
amp_core_version:
required: true
type: string
amp_instmgr_version:
required: true
type: string
amp_last_modified:
required: true
type: string
secrets:
DOCKERHUB_USERNAME:
required: true
DOCKERHUB_TOKEN:
required: true
push:
branches:
- "master"
tags:
- v*

jobs:
build:
uses: ./.github/workflows/build.yml
with:
for_deploy: true

deploy:
name: "Deploy"
runs-on: ubuntu-latest
needs: build
steps:
- name: "Download Docker Image Artifacts"
uses: actions/download-artifact@v2
with:
path: /tmp
- name: "Load Docker Image"
- name: "Get Tag Name"
id: get_tag_name
run: echo "TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
- name: "Load Docker Images"
id: load_images
run: |
for f in $(find /tmp -type f -iname 'docker-image*.tar' -print); do
TAGS=""
for f in $(find /tmp -type f -iname 'docker-image-*.tar' -print); do
ARCH=$(echo ${f} | sed -E 's/.*docker-image-(.*).tar/\1/')
docker load --input ${f}
TAG="mitchtalmadge/amp-dockerized:${{ steps.get_tag_name.outputs.TAG_NAME }}-${ARCH}"
TAGS="${TAGS} ${TAG}"
docker tag amp-dockerized:latest ${TAG}
done
echo "TAGS=${TAGS}" >> $GITHUB_OUTPUT
docker image ls -a
- name: "Tag Docker Images"
run: |
docker tag amp-dockerized:latest mitchtalmadge/amp-dockerized:latest
docker tag amp-dockerized:latest mitchtalmadge/amp-dockerized:${{inputs.git_release_version}}
docker tag amp-dockerized:latest mitchtalmadge/amp-dockerized:${{inputs.git_release_version}}-ampcore${{inputs.amp_core_version}}-ampinstmgr${{inputs.amp_instmgr_version}}
docker tag amp-dockerized:latest mitchtalmadge/amp-dockerized:${{inputs.git_release_version}}-ampcore${{inputs.amp_core_version}}-ampinstmgr${{inputs.amp_instmgr_version}}-${{inputs.amp_last_modified}}
- name: "Checkout Git Repo"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Commit Git Tag"
run: |
git config user.name github-actions
git config user.email [email protected]
TAG=${{inputs.git_release_version}}-ampcore${{inputs.amp_core_version}}-ampinstmgr${{inputs.amp_instmgr_version}}-${{inputs.amp_last_modified}}
git tag -a "${TAG}" -m "Auto Release Latest AMP Version" || { echo "Tag already exists"; exit; }
git push --follow-tags
- name: "Login to Docker Hub"
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: "Deploy to Docker Hub"
run: docker image push --all-tags mitchtalmadge/amp-dockerized
- name: "Deploy Multi-Arch Manifests"
run: |
MANIFESTS="mitchtalmadge/amp-dockerized:latest mitchtalmadge/amp-dockerized:${{ steps.get_tag_name.outputs.TAG_NAME }}"
for m in ${MANIFESTS}; do
docker manifest create ${m} ${{ steps.load_images.outputs.TAGS }}
docker manifest push ${m}
done
42 changes: 30 additions & 12 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,55 @@
name: "Deploy Staging"

on:
workflow_call:
secrets:
DOCKERHUB_USERNAME:
required: true
DOCKERHUB_TOKEN:
required: true
push:
branches:
- "staging*"
paths:
- Dockerfile
- .dockerignore
- entrypoint/**
- .github/workflows/**.yml

jobs:
build:
if: ${{ startsWith(github.ref, 'refs/heads/staging') }}
uses: ./.github/workflows/build.yml
with:
for_deploy: true

deploy:
name: "Deploy Staging"
runs-on: ubuntu-latest
needs: build
steps:
- name: "Download Docker Image Artifacts"
uses: actions/download-artifact@v2
with:
path: /tmp
- name: "Load Docker Images"
id: load_images
run: |
for f in $(find /tmp -type f -iname 'docker-image*.tar' -print); do
TAGS=""
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})
for f in $(find /tmp -type f -iname 'docker-image-*.tar' -print); do
ARCH=$(echo ${f} | sed -E 's/.*docker-image-(.*).tar/\1/')
docker load --input ${f}
TAG="mitchtalmadge/amp-dockerized:${BRANCH_NAME}-${ARCH}"
TAGS="${TAGS} ${TAG}"
docker tag amp-dockerized:latest ${TAG}
done
echo "TAGS=${TAGS}" >> $GITHUB_OUTPUT
docker image ls -a
- name: "Extract Branch Name"
id: extract_branch
run: echo "::set-output name=name::$(echo ${GITHUB_REF#refs/heads/})"
- name: "Tag Docker Image"
run: docker tag amp-dockerized:latest mitchtalmadge/amp-dockerized:${{ steps.extract_branch.outputs.name }}
- name: "Login to Docker Hub"
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: "Deploy to Docker Hub"
run: docker image push --all-tags mitchtalmadge/amp-dockerized
- name: "Deploy Multi-Arch Manifest"
run: |
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})
MANIFEST="mitchtalmadge/amp-dockerized:${BRANCH_NAME}"
docker manifest create ${MANIFEST} ${{ steps.load_images.outputs.TAGS }}
docker manifest push ${MANIFEST}
Loading