Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rexzhang committed Mar 19, 2024
1 parent ac3161d commit 0f00e4a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release Image to DockerHub

# https://github.com/metcalfc/docker-action-examples/blob/main/.github/workflows/release.yml

name: Publish Releases to Hub

# When its time to do a release do a full cross platform build for all supported
# architectures and push all of them to Docker Hub.
# Only trigger on semver shaped tags.
Expand All @@ -17,7 +17,7 @@ jobs:
# GitHub Actions do not automatically checkout your projects. If you need the code
# you need to check it out.
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v3.6.0

- name: Prepare
id: prep
Expand All @@ -34,7 +34,7 @@ jobs:
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
fi
echo ::set-output name=tags::${TAGS}
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -54,12 +54,13 @@ jobs:

- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
context: ./app
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
target: prod
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
cache-from: type=gha
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# https://github.com/mhausenblas/mkdocs-deploy-gh-pages

name: Release docs to GitHub Pages

on:
push:
branches:
- main
paths:
- 'docs/**'
- "docs/**"

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v3

- uses: actions/setup-python@v3
with:
python-version: 'pypy-3.9'
uses: actions/checkout@v4

- name: Deploy docs
uses: afritzler/mkdocs-gh-pages-action@main
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
REQUIREMENTS: requirements/mkdocs.txt
#GITHUB_DOMAIN: github.myenterprise.com

0 comments on commit 0f00e4a

Please sign in to comment.