Skip to content

Commit

Permalink
Abandon buildah, switch to buildx for image build, so docker can find it
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Aug 12, 2024
1 parent ac13c51 commit 6a8d00c
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,21 @@ jobs:
- name: Test minecraft mod
run: ./gradlew test
working-directory: modded-minecraft
- name: Package minecraft mod
run: ./gradlew publish
working-directory: modded-minecraft
- name: Buildah Action
id: build-image
uses: redhat-actions/buildah-build@v2
- name: Setup Buildx
id: buildx
uses:
docker/setup-buildx-action@v3
- name: Buildah Action
- name: Build image
uses: docker/build-push-action@v6
with:
image: minecraft-server
tags: latest
builder: ${{ steps.buildx.outputs.name }}
context: ./modded-minecraft
containerfiles: |
./modded-minecraft/Dockerfile
- name: Push image to Docker
run: |
sudo apt-get -y update
sudo apt-get -y upgrade buildah
buildah push minecraft-server docker-daemon:minecraft-server:latest
provenance: false
file: ./modded-minecraft/Dockerfile
push: false
tags: |
minecraft-server:latest
- name: Build extension
run: mvn install
working-directory: extension
Expand Down

0 comments on commit 6a8d00c

Please sign in to comment.