Skip to content

Commit

Permalink
promote to v1.0.0, update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ModischFabrications committed Jan 30, 2024
1 parent 6d3a4ef commit f653a18
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node ⚙
uses: actions/setup-node@v3
uses: actions/setup-node@v4

- name: Install dependencies & build ⚙️
run: |
Expand All @@ -49,23 +49,22 @@ jobs:
build-and-push-docker:
needs: build-and-test
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) ||
startsWith(github.ref, 'refs/tags/v') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)
if: github.ref == 'refs/heads/{{ github.event.repository.default_branch }}' || startsWith(github.ref, 'refs/tags/v')

runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout 🛎️
# uses: actions/checkout@v3 # incompatible with git lfs cache (https://github.com/actions/checkout/issues/165#issuecomment-940225299)
uses: nschloe/action-checkout-with-lfs-cache@v1.1.2
uses: nschloe/action-checkout-with-lfs-cache@v1.2.2
with:
exclude: "docs/*"

# https://github.com/docker/metadata-action
- name: Export Metadata for Docker 🖊️
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
modischfabrications/cutsolver_frontend
Expand All @@ -76,12 +75,12 @@ jobs:
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU ⚙
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx ⚙
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Report Buildx platforms 🖊️
run: echo ${{ steps.buildx.outputs.platforms }}
Expand All @@ -93,15 +92,15 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GHCR 👤
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

# https://github.com/docker/build-push-action
- name: Build and push to DH & GHCR 📦
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
Expand All @@ -112,7 +111,7 @@ jobs:
cache-to: type=inline

- name: Update DH description 🖊️
uses: peter-evans/dockerhub-description@v3
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ Feel free to contact me or make a pull-request if you want to participate.
Remember to set all versions for new releases:
1. git tag
2. package.json
3. Docker Multibuild (might be done by travis eventually)

### Build & Dev Environment
I assume you know what you are doing if you want to develop and install it manually.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cutsolver_frontend",
"version": "0.3.8",
"version": "1.0.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down

0 comments on commit f653a18

Please sign in to comment.