Skip to content

Commit

Permalink
Cleanup Docker release job
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazoyer committed Feb 1, 2024
1 parent f0fbf1f commit b2c77f3
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
types:
- published

env:
IMAGE_NAME: ${{ github.repository }}
DOCKERFILE: Dockerfile
PLATFORMS: linux/amd64,linux/arm64

jobs:
build:
runs-on: ubuntu-22.04
Expand All @@ -36,20 +31,15 @@ jobs:

- name: Login to Docker Hub
uses: docker/login-action@v3
id: login
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
id: push
with:
context: .
file: ${{ env.DOCKERFILE }}
provenance: false
push: true
platforms: ${{ env.PLATFORMS }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit b2c77f3

Please sign in to comment.