From eb6df72c62a2a11468d93c94638c57b77a1e1f9d Mon Sep 17 00:00:00 2001 From: 0xzio Date: Tue, 19 Nov 2024 09:35:52 +0800 Subject: [PATCH] feat: add create-images script --- .github/workflows/create-images.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/create-images.yml diff --git a/.github/workflows/create-images.yml b/.github/workflows/create-images.yml new file mode 100644 index 00000000..2fc9ca00 --- /dev/null +++ b/.github/workflows/create-images.yml @@ -0,0 +1,34 @@ +name: Create docker images + +on: + push: + branches: + - main + +jobs: + build: + name: Build, push, and deploy + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: mr-smithers-excellent/docker-build-push@v6 + name: Build & push Docker image to docker.io + with: + image: penxio/penx + tags: penx-latest + registry: docker.io + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - uses: mr-smithers-excellent/docker-build-push@v6 + name: Build & push Docker image to ghcr.io + with: + image: penx + tags: penx-latest + registry: ghcr.io + multiPlatform: true + platform: linux/amd64,linux/arm64 + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} \ No newline at end of file