Skip to content

Commit

Permalink
chore(ci): add hadolint step
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane committed Oct 25, 2023
1 parent 3574b9a commit b6b9573
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions .github/workflows/build-push-docker.yml
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:
Expand Down Expand Up @@ -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 }}

0 comments on commit b6b9573

Please sign in to comment.