Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Action: https://github.com/actions/checkout/releases/tag/v4.2.2
- name: Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- name: Build the Docker image
run: docker build . --file Dockerfile
14 changes: 9 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,30 @@ jobs:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
# Action: https://github.com/actions/checkout/releases/tag/v4.2.2
- name: Check out the repo
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

# Action: https://github.com/docker/login-action/releases/tag/v3.4.0
- name: Log in to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

# Action: https://github.com/docker/metadata-action/releases/tag/v5.7.0
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
with:
images: junobuild/action
tags: |
type=semver,pattern={{major}}
type=semver,pattern={{version}}

- name: Build and push Docker image
uses: docker/build-push-action@v3
# Action: https://github.com/docker/build-push-action/releases/tag/v6.18.0
- name: Build and push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
file: ./Dockerfile
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Action: https://github.com/actions/checkout/releases/tag/v4.2.2
- name: Check out the repo
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

# Action: https://github.com/docker/setup-buildx-action/releases/tag/v3.10.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2

# Action: https://github.com/docker/build-push-action/releases/tag/v6.18.0
- name: Build and push
uses: docker/build-push-action@v6
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83
with:
context: .
file: Dockerfile
Expand Down