Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar Oostendorp authored Dec 18, 2023
1 parent 64a3bd4 commit 6d6ea36
Showing 1 changed file with 6 additions and 34 deletions.
40 changes: 6 additions & 34 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,56 +17,28 @@ jobs:
packages: write
steps:
- name: Checkout repository
uses: actions/[email protected]

# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules-web
# with:
# # npm cache files are stored in `~/.npm` on Linux/macOS
# path: web/node_modules
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
#
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules-bots
# with:
# # npm cache files are stored in `~/.npm` on Linux/macOS
# path: bots/node_modules
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
#
#
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.3.0
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}



- name: Build and push Docker image
uses: docker/build-push-action@v5.1.0
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: pixelaw/core:latest
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 6d6ea36

Please sign in to comment.