Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsnolde committed Nov 13, 2023
1 parent 98a5e22 commit 551d931
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/manual_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build latest image
run: |
docker buildx build --push --platform linux/arm64 --tag ghcr.io/${{ github.repository }}/valhalla:manually_triggered_build_arm64 .
sed -i "s/:latest/:manually_triggered_build/g" Dockerfile
docker build -t ghcr.io/${{ github.repository }}/valhalla:manually_triggered_build .
docker push ghcr.io/${{ github.repository }}/valhalla:manually_triggered_build
19 changes: 11 additions & 8 deletions .github/workflows/manual_build_arm64.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Builds a new image from Valhalla's "manually_triggered_build" image

name: manual image build
name: manual arm64 image build
on:
workflow_dispatch

Expand All @@ -9,17 +7,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build latest image
run: |
sed -i "s/:latest/:manually_triggered_build/g" Dockerfile
docker build -t ghcr.io/${{ github.repository }}/valhalla:manually_triggered_build .
docker push ghcr.io/${{ github.repository }}/valhalla:manually_triggered_build
docker buildx build --push --platform linux/arm64 --tag ghcr.io/${{ github.repository }}/valhalla:manually_triggered_build_arm64 .

0 comments on commit 551d931

Please sign in to comment.