Skip to content

Commit

Permalink
Try rolling back olbase?
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrini committed Jan 6, 2025
1 parent 40ba8af commit e459302
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/olbase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,22 @@ jobs:
with:
submodules: true

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

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

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

# If on master, use the latest tag, otherwise use the branch name
- name: Master Build and push
uses: docker/build-push-action@v6
if: github.ref == 'refs/heads/master'
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
context: "."
file: "./docker/Dockerfile.olbase"
tags: openlibrary/olbase:latest
push: true
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# If on another branch, use the branch name -- just the branch name, not the full ref
- name: Test Branch Build and push
- name: Build and push
uses: docker/build-push-action@v6
if: github.ref != 'refs/heads/master'
with:
context: "."
file: "./docker/Dockerfile.olbase"
tags: openlibrary/olbase:${{ github.ref_name }}
tags: openlibrary/olbase:latest
push: true

0 comments on commit e459302

Please sign in to comment.