Does This Even Work?

This commit is contained in:
Annika Merris 2024-02-03 19:18:49 -05:00
parent a47696c225
commit 7251caa7a8

View file

@ -15,41 +15,43 @@ jobs:
container: container:
image: node:21-alpine image: node:21-alpine
steps: steps:
- name: Install docker - name: Test New Thing
shell: /bin/ash -e {0} uses: https://github.com/moosetheory/actions-docker-extract@v4
run: apk add --update docker git # - name: Install docker
- name: Check out the repo # shell: /bin/ash -e {0}
uses: https://github.com/actions/checkout@v4 # run: apk add --update docker git
- name: Do Debug Things # - name: Check out the repo
shell: /bin/ash -e {0} # uses: https://github.com/actions/checkout@v4
run: echo ${{ github.head_ref || github.ref_name }} # - name: Do Debug Things
- name: Set up Docker Buildx # shell: /bin/ash -e {0}
uses: https://github.com/docker/setup-buildx-action@v3 # run: echo ${{ github.head_ref || github.ref_name }}
with: # - name: Set up Docker Buildx
driver-opts: | # uses: https://github.com/docker/setup-buildx-action@v3
network=host # with:
config: .forgejo/build_configs/buildkitd.toml # driver-opts: |
- name: Login to docker repo # network=host
uses: docker/login-action@v3 # config: .forgejo/build_configs/buildkitd.toml
with: # - name: Login to docker repo
registry: "forgejo.merr.is" # uses: docker/login-action@v3
username: ${{ github.actor }} # with:
password: ${{ secrets.actions_token }} # registry: "forgejo.merr.is"
- name: Build and push the image # username: ${{ github.actor }}
uses: https://github.com/docker/build-push-action@v5 # password: ${{ secrets.actions_token }}
with: # - name: Build and push the image
context: . # uses: https://github.com/docker/build-push-action@v5
push: true # with:
tags: forgejo.merr.is/${{ github.repository }}:${{ github.head_ref || github.ref_name }}.${{ github.run_number }} # context: .
- name: Extract Binary For Release # push: true
uses: https://github.com/shrink/actions-docker-extract@v3 # tags: forgejo.merr.is/${{ github.repository }}:${{ github.head_ref || github.ref_name }}.${{ github.run_number }}
id: extract # - name: Extract Binary For Release
with: # uses: https://github.com/shrink/actions-docker-extract@v3
image: forgejo.merr.is/${{ github.repository }}:${{ github.head_ref || github.ref_name }}.${{ github.run_number }} # id: extract
path: /isl-api # with:
destination: dist # image: forgejo.merr.is/${{ github.repository }}:${{ github.head_ref || github.ref_name }}.${{ github.run_number }}
- name: Create Release # path: /isl-api
uses: https://github.com/softprops/action-gh-release@v1 # destination: dist
with: # - name: Create Release
files: | # uses: https://github.com/softprops/action-gh-release@v1
dist/isl-api # with:
# files: |
# dist/isl-api