Skip to content

Commit

Permalink
Build dev images for azure
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Jan 8, 2024
1 parent c331cb3 commit 4a75d38
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/docker-dev-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ jobs:
with:
name: executables

- name: Get version from tag
run: echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

- name: Set permissions
run: chmod +x ./linux-musl-x64/configcat

Expand All @@ -61,4 +58,33 @@ jobs:
context: .
push: true
tags: |
configcat/cli:dev-${{ github.run_id }}
configcat/cli:dev-${{ github.run_id }}
docker-azure:
runs-on: ubuntu-latest
needs: [ produce-executables ]

steps:
- uses: actions/checkout@v3

- name: Download executables
uses: actions/download-artifact@v3
with:
name: executables

- name: Set permissions
run: chmod +x ./linux-musl-x64/configcat

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: azure-devops/Dockerfile
push: true
tags: configcat/cli:dev-azure-devops-${{ github.run_id }}
2 changes: 1 addition & 1 deletion azure-devops/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY ./linux-musl-x64/configcat /usr/local/bin

RUN apk add --no-cache \
git openssh-client ca-certificates \
krb5-libs libintl libssl1.1 libstdc++ zlib \
krb5-libs libintl libssl3 libstdc++ zlib \
bash sudo shadow

RUN apk add --no-cache --virtual .pipeline-deps readline linux-pam \
Expand Down

0 comments on commit 4a75d38

Please sign in to comment.