Skip to content

Commit

Permalink
Cleanups & buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
LordMike committed Aug 18, 2023
1 parent 6bf876e commit cb5ef74
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DOCKER_DOCKERFILE=MBW.Nemlig2MQTT/Dockerfile
DOCKER_TAG=lordmike/nemlig2mqtt
DOCKER_PLATFORMS=linux/amd64,linux/arm64/v8,linux/arm/v7
8 changes: 1 addition & 7 deletions .github/workflows/docker-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Prep docker experimentals
run: echo "DOCKER_CLI_EXPERIMENTAL=enabled" >> $GITHUB_ENV

- name: Prep GIT_TAG
run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- uses: actions/checkout@v2

- name: Dotenv Action
Expand All @@ -38,7 +32,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
platforms: ${{ env.DOCKER_PLATFORMS }}
push: true
tags: ${{ env.DOCKER_TAG }}:dev
file: ${{ env.DOCKER_DOCKERFILE }}
10 changes: 2 additions & 8 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Prep docker experimentals
run: echo "DOCKER_CLI_EXPERIMENTAL=enabled" >> $GITHUB_ENV

- name: Prep GIT_TAG
run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- uses: actions/checkout@v2

- name: Dotenv Action
Expand All @@ -38,7 +32,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7
platforms: ${{ env.DOCKER_PLATFORMS }}
push: true
tags: "${{ env.DOCKER_TAG }}:${{ env.GIT_TAG }},${{ env.DOCKER_TAG }}:latest"
tags: "${{ env.DOCKER_TAG }}:${{ env.GITHUB_REF_NAME }},${{ env.DOCKER_TAG }}:latest"
file: ${{ env.DOCKER_DOCKERFILE }}

0 comments on commit cb5ef74

Please sign in to comment.