-
Notifications
You must be signed in to change notification settings - Fork 16
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
Stéphane
committed
Oct 25, 2023
1 parent
3574b9a
commit b6b9573
Showing
1 changed file
with
25 additions
and
26 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: Build and push Docker images on hub | ||
|
||
on: | ||
workflow_dispatch: | ||
on: push | ||
|
||
jobs: | ||
build: | ||
|
@@ -32,27 +31,27 @@ jobs: | |
- uses: hadolint/[email protected] | ||
with: | ||
dockerfile: Dockerfile | ||
- uses: actions/cache/restore@v3 | ||
id: restore-build | ||
with: | ||
path: ${{ github.workspace }}/build | ||
key: ${{ github.sha }}-build | ||
- name: get-npm-version | ||
id: package-version | ||
uses: martinbeentjes/[email protected] | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
push: true | ||
tags: spout8301/holoplay:${{ steps.package-version.outputs.current-version }} | ||
# - uses: actions/cache/restore@v3 | ||
# id: restore-build | ||
# with: | ||
# path: ${{ github.workspace }}/build | ||
# key: ${{ github.sha }}-build | ||
# - name: get-npm-version | ||
# id: package-version | ||
# uses: martinbeentjes/[email protected] | ||
# - name: Set up QEMU | ||
# uses: docker/setup-qemu-action@v3 | ||
# - name: Set up Docker Buildx | ||
# uses: docker/setup-buildx-action@v3 | ||
# - name: Login to Docker Hub | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
# password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
# - name: Build and push | ||
# uses: docker/build-push-action@v5 | ||
# with: | ||
# context: . | ||
# platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
# push: true | ||
# tags: spout8301/holoplay:${{ steps.package-version.outputs.current-version }} |