Skip to content

Commit ce6697d

Browse files
committed
ci: screw it, we build and publish ghcr images manually
1 parent ad44d46 commit ce6697d

1 file changed

Lines changed: 0 additions & 52 deletions

File tree

.github/workflows/main.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -72,55 +72,3 @@ jobs:
7272
start: npm run develop -- -p 8000
7373
wait-on: 'http://0.0.0.0:8000' # see https://github.com/cypress-io/github-action#wait-on-with-nodejs-18
7474
config: baseUrl=http://localhost:8000
75-
76-
docker:
77-
needs: [build, e2e]
78-
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' }}
79-
runs-on: ubuntu-latest
80-
permissions:
81-
contents: read
82-
packages: write
83-
steps:
84-
- name: Checkout
85-
uses: actions/checkout@v3
86-
87-
- name: Set up Docker Buildx
88-
uses: docker/setup-buildx-action@v2
89-
90-
- name: Login to GitHub Container Registry
91-
uses: docker/login-action@v2
92-
with:
93-
registry: ghcr.io
94-
username: ${{ github.actor }}
95-
password: ${{ secrets.GHCR_TOKEN }}
96-
97-
- name: Docker meta
98-
id: meta
99-
uses: docker/metadata-action@v4
100-
with:
101-
images: ghcr.io/${{ github.repository }}
102-
tags: |
103-
# set latest tag for default branch
104-
type=raw,value=latest,enable={{is_default_branch}}
105-
type=raw,value=dev,enable=${{ github.ref == format('refs/heads/{0}', 'dev') }}
106-
107-
- name: Build and export to Docker
108-
uses: docker/build-push-action@v3
109-
with:
110-
context: .
111-
load: true
112-
tags: ${{ env.TEST_TAG }}
113-
114-
- name: Test docker image
115-
run: |
116-
mkdir -p data
117-
cp .env.example .env
118-
cp test/data/ttl/interactivityType.ttl data/
119-
docker run --rm -v $(pwd)/data:/app/data -v $(pwd)/.env:/app/.env ${{ env.TEST_TAG }}
120-
121-
- name: Build and push
122-
uses: docker/build-push-action@v3
123-
with:
124-
push: true
125-
tags: ${{ steps.meta.outputs.tags }}
126-
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)