Compare commits

..

3 commits

Author SHA1 Message Date
bdd398a27d chore(): Adds Github token
Some checks are pending
build-container / docker (push) Waiting to run
2024-03-31 00:19:07 +01:00
0b044fcbc9 chore(): Build only for ARM 2024-03-30 23:38:57 +01:00
48ddb6dc0a chore(): Suppresses most output 2024-03-30 23:38:16 +01:00
2 changed files with 11 additions and 8 deletions

View file

@ -14,8 +14,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
id: dependencies id: dependencies
run: | run: |
apt-get update apt-get update > /dev/null
apt-get install -y -qq nodejs curl git apt-get install -y -qq nodejs curl git > /dev/null
curl -sSL https://get.docker.com/ | sh curl -sSL https://get.docker.com/ | sh
- name: Checkout - name: Checkout
@ -31,6 +31,9 @@ jobs:
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64 platforms: linux/arm64
push: true push: true
tags: scm.project42.io/elia/ansible-actions-container:latest github_token: ${{ secrets.REPOSITORY_SECRET }}
tags: |
scm.project42.io/elia/ansible-actions-container:latest
scm.project42.io/elia/ansible-actions-container:python-3.12.2

View file

@ -1,13 +1,13 @@
FROM python:3.12.2-slim-bookworm FROM python:3.12.2-slim-bookworm
RUN apt-get update && \ RUN apt-get update > /dev/null && \
apt-get install -y -qq nodejs git && \ apt-get install -y -qq nodejs git > /dev/null && \
apt-get clean && \ apt-get clean > /dev/null && \
useradd -m --uid 1010 --shell /bin/bash ansible useradd -m --uid 1010 --shell /bin/bash ansible
USER 1010 USER 1010
RUN pip install --user ansible && \ RUN pip install --user ansible > /dev/null && \
echo 'export PATH="$HOME/.local/bin:$PATH"' >> $HOME/.bashrc echo 'export PATH="$HOME/.local/bin:$PATH"' >> $HOME/.bashrc
ENTRYPOINT ["/bin/bash"] ENTRYPOINT ["/bin/bash"]